public ShoppingListTests() { commonFixture = new CommonFixture(); shoppingListItemFixture = new ShoppingListItemFixture(commonFixture); shoppingListSectionFixture = new ShoppingListSectionFixture(commonFixture); shoppingListFixture = new ShoppingListFixture(commonFixture).AsModelFixture(); shoppingListSectionMockFixture = new ShoppingListSectionMockFixture(shoppingListSectionFixture, commonFixture); }
public FinishShoppingListCommandHandlerTests() { commonFixture = new CommonFixture(); shoppingListSectionFixture = new ShoppingListSectionFixture(commonFixture); var shoppingListFixture = new ShoppingListFixture(commonFixture); shoppingListMockFixture = new ShoppingListMockFixture(commonFixture, shoppingListFixture); }
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(); ShoppingListFixture = new ShoppingListFixture(CommonFixture); ShoppingListMockFixture = new ShoppingListMockFixture(CommonFixture, ShoppingListFixture); ShoppingListSectionFixture = new ShoppingListSectionFixture(CommonFixture); ShoppingListItemFixture = new ShoppingListItemFixture(CommonFixture); StoreItemAvailabilityFixture = new StoreItemAvailabilityFixture(CommonFixture); StoreItemFixture = new StoreItemFixture(StoreItemAvailabilityFixture, CommonFixture); StoreSectionFixture = new StoreSectionFixture(CommonFixture); StoreFixture = new StoreFixture(CommonFixture); ShoppingListSectionFactoryMock = new ShoppingListSectionFactoryMock(Fixture); StoreRepositoryMock = new StoreRepositoryMock(Fixture); ItemRepositoryMock = new ItemRepositoryMock(Fixture); ShoppingListItemFactoryMock = new ShoppingListItemFactoryMock(Fixture); }
public IShoppingListSection CreateSection(SectionId sectionId) { var sectionDef = ShoppingListSectionDefinition.FromId(sectionId); return(ShoppingListSectionFixture.CreateValid(sectionDef)); }