public void AddItem___CollectorAddIsCalled() { Item item = new Item() { Name = "Item" }; _uut.AddItem(item); _collector.Received().Add(item, _loginModel.ShoppinglistId); }
public void Constructor_LoginModelUsernameIsHenrik_ItemCollectorGetAllIsCalled() { _shoppingListModel = new ScheduledShoppingListModel(_itemCollector, _scheduler, _loginModel); _sut = new ShoppingListViewModel(_shoppingListModel); _itemCollector.Received().GetAll("Henrik"); }