public void ShowRecipeCommand_IngredientsIsNull_ItemCollectorIsNotCalled()
        {
            //Setup
            ISubWindowFactory fac = Substitute.For <ISubWindowFactory>();

            _sut.SetWindowFactory(fac);
            IRecipeInformationWindowDialog dia = Substitute.For <IRecipeInformationWindowDialog>();

            fac.GetRecipeInformationWindow(Arg.Any <Recipe>(), Arg.Any <Window>(), Arg.Any <string>()).Returns(dia);
            dia.ShowDialog().Returns(true);

            Recipe r = new Recipe();

            _sut.ShowRecipeCommand.Execute(r);
            _itemCollector.DidNotReceive().Add(Arg.Any <Item>(), _loginModel.ShoppinglistId);
        }
        public void UpdateItem_GetsAnItem_UpdateIsNotCalledWithWrongItem()
        {
            var item = new Item();

            _uut.UpdateItem(item);
            _collector.DidNotReceive().Update(new Item());
        }
        public async Task Wait1900ms_SchedulerDoesntTicks_CollectorGetAllIsIsNotCalled()
        {
            await Task.Delay(1900);

            var result = _itemCollector.DidNotReceive().GetAll("Henrik");
        }