Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 4
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);
        }