private object[] NoItemCategory() { IStore store = storeFixture.CreateValid(); var list = GetShoppingListContainingOneItem(store.Id, store.Sections.First().Id); IManufacturer manufacturer = manufaturerFixture.Create(); var avavilabilityDef = new StoreItemAvailabilityDefinition { StoreId = store.Id, DefaultSectionId = store.Sections.First().Id }; var availability = storeItemAvailabilityFixture.Create(avavilabilityDef); var itemDef = new StoreItemDefinition { Id = list.Sections.First().Items.First().Id, ItemCategoryId = null, ManufacturerId = manufacturer.Id, Availabilities = availability.ToMonoList() }; IStoreItem item = storeItemFixture.Create(itemDef); var listReadModel = ToSimpleReadModel(list, store, item, null, manufacturer); return(new object[] { list, store, item.ToMonoList(), Enumerable.Empty <IItemCategory>(), manufacturer.ToMonoList(), listReadModel }); }
protected override (IStore, Entities.Store) CreateTestObjects() { var commonFixture = new CommonFixture(); var storeFixture = new StoreFixture(commonFixture); var source = storeFixture.CreateValid(); var destination = GetDestination(source); return(source, destination); }
public IStore CreateStore(StoreId storeId, SectionId sectionId) { var sectionDef = StoreSectionDefinition.FromId(sectionId); var storeDef = new StoreDefinition { Id = storeId, Sections = StoreSectionFixture.CreateMany(sectionDef, 1) }; return(StoreFixture.CreateValid(storeDef)); }
public IStore CreateStore(IShoppingList shoppingList, SectionId sectionId) { var sectionDef = StoreSectionDefinition.FromId(sectionId); var section = StoreSectionFixture.Create(sectionDef); var storeDef = new StoreDefinition { Id = shoppingList.StoreId, Sections = section.ToMonoList() }; return(StoreFixture.CreateValid(storeDef)); }
public IStore CreateStore() { return(StoreFixture.CreateValid()); }