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);
        }
Beispiel #3
0
        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);
        }