using Nop.Core.Domain.Gdpr; using Nop.Services.Gdpr; using NUnit.Framework; namespace Nop.Tests.Nop.Services.Tests.Gdpr; [TestFixture] public class GdprServiceTests : ServiceTest { private IGdprService _gdprService; [OneTimeSetUp] public void SetUp() { _gdprService = GetService(); } protected override CrudData CrudData { get { var insertItem = new GdprConsent { Message = "Test message" }; var updateItem = new GdprConsent { Message = "Update test message" }; return new CrudData { BaseEntity = insertItem, UpdatedEntity = updateItem, Insert = _gdprService.InsertConsentAsync, Update = _gdprService.UpdateConsentAsync, GetById = _gdprService.GetConsentByIdAsync, IsEqual = (item, other) => item.Message.Equals(other.Message), Delete = _gdprService.DeleteConsentAsync }; } } }