using AsbCloudApp.Data; using AsbCloudApp.Services; using AsbCloudDb.Model; using AsbCloudInfrastructure.Repository; namespace AsbCloudWebApi.Tests.ServicesTests { public class DepositCrudCacheServiceTest : CrudServiceTestAbstract { protected override DepositDto MakeNewItem() { var item = new DepositDto { Caption = "test deposit", Latitude = 1, Longitude = 2, Timezone = new SimpleTimezoneDto { Hours = 5, TimezoneId = "test Never-land" } }; return item; } protected override ICrudRepository MakeService() { var dbContext = TestHelpter.MakeRealTestContext(); return new CrudCacheRepositoryBase(dbContext, TestHelpter.MemoryCache); } } }