public GetAssetCategoriesTests(AnabiApplicationFactory <Startup> factory) : base(factory) { Context = new AnabiDbContextBuilder() .CreateInMemoryDbContext() .WithAssetCategories() .Build(); Client = factory.CreateClient(); }
public AddSolutionTests(AnabiApplicationFactory <Startup> factory) : base(factory) { Context = new AnabiDbContextBuilder() .CreateInMemorySqliteDbContext() .WithAllDictionaries() .Build(); Client = factory.CreateClient(); _addMinimalAssetHelper = new AddMinimalAssetHelper(Context, Client); }
public GetAssetAddressTests(AnabiApplicationFactory <Startup> factory) : base(factory) { Context = new AnabiDbContextBuilder() .CreateInMemorySqliteDbContext() .WithCounties() .WithStages() .WithAssetCategories() .Build(); Client = factory.CreateClient(); _minimalAssetHelper = new AddMinimalAssetHelper(Context, Client); _addAddressToAssetHelper = new AddAddressToAssetHelper(Context, Client); }
public RemoveAssetFromStorageSpaceTest(AnabiApplicationFactory <Startup> factory) : base(factory) { Context = new AnabiDbContextBuilder() .CreateInMemorySqliteDbContext() .WithCounties() .WithStages() .WithAssetCategories() .Build(); Client = factory.CreateClient(); _minimalAssetHelper = new AddMinimalAssetHelper(Context, Client); _storageSpaceHelper = new AddStorageSpaceHelper(Context, Client); _addAssetToStorageSpaceHelper = new AddAssetToStorageSpaceHelper(Context, Client); }