public LocalFixture() { Fixture = CommonFixture.GetNewFixture(); ManufacturerRepositoryMock = new ManufacturerRepositoryMock(Fixture); ManufacturerFixture = new ManufacturerFixture(CommonFixture); }
protected override (IManufacturer, Entities.Manufacturer) CreateTestObjects() { var commonFixture = new CommonFixture(); var domainFixture = new ManufacturerFixture(commonFixture); var source = domainFixture.Create(); var destination = ToDomain.ManufacturerConverterTests.GetSource(source); return(source, destination); }
protected override (Entities.Manufacturer, IManufacturer) CreateTestObjects() { var commonFixture = new CommonFixture(); var domainFixture = new ManufacturerFixture(commonFixture); var destination = domainFixture.Create(); var source = GetSource(destination); return(source, destination); }
public Dictionary <ManufacturerId, IManufacturer> CreateManufacturers( IEnumerable <ManufacturerId> manufacturerIds) { Dictionary <ManufacturerId, IManufacturer> dict = new Dictionary <ManufacturerId, IManufacturer>(); foreach (var manufacturerId in manufacturerIds) { var manufacturer = ManufacturerFixture.Create(ManufacturerDefinition.FromId(manufacturerId)); dict.Add(manufacturerId, manufacturer); } return(dict); }
public ConvertAsyncTestData() { commonFixture = new CommonFixture(); manufaturerFixture = new ManufacturerFixture(commonFixture); itemCategoryFixture = new ItemCategoryFixture(commonFixture); storeFixture = new StoreFixture(commonFixture); storeItemAvailabilityFixture = new StoreItemAvailabilityFixture(commonFixture); storeItemFixture = new StoreItemFixture(storeItemAvailabilityFixture, commonFixture); shoppingListFixture = new ShoppingListFixture(commonFixture); shoppingListSectionFixture = new ShoppingListSectionFixture(commonFixture); shoppingListItemFixture = new ShoppingListItemFixture(commonFixture); }
public LocalFixture() { Fixture = CommonFixture.GetNewFixture(); StoreItemAvailabilityFixture = new StoreItemAvailabilityFixture(CommonFixture); StoreItemFixture = new StoreItemFixture(StoreItemAvailabilityFixture, CommonFixture); StoreSectionFixture = new StoreSectionFixture(CommonFixture); StoreFixture = new StoreFixture(CommonFixture); ItemCategoryFixture = new ItemCategoryFixture(CommonFixture); ManufacturerFixture = new ManufacturerFixture(CommonFixture); ItemCategoryRepositoryMock = new ItemCategoryRepositoryMock(Fixture); ManufacturerRepositoryMock = new ManufacturerRepositoryMock(Fixture); }
public IManufacturer CreateManufacturer(ManufacturerId manufacturerId) { var def = ManufacturerDefinition.FromId(manufacturerId); return(ManufacturerFixture.Create(def)); }
public ShoppingListItemFixture(CommonFixture commonFixture) { this.commonFixture = commonFixture; manufacturerFixture = new ManufacturerFixture(commonFixture); itemCategoryFixture = new ItemCategoryFixture(commonFixture); }