Esempio n. 1
0
        public void ThenICanSeeItemsWithUnitsInMyItemsList(string itemName, uint units)
        {
            var items = new ItemsListView(this.ReadModelRepository).Items;

            Check.That(items.Single().Name).Equals(itemName);
            Check.That(items.Single().Units).Equals(units);
        }
Esempio n. 2
0
        public void ThenItContainsInTheHistory(string historyRow)
        {
            var items = new ItemsListView(this.ReadModelRepository).Items;
            var item  = items.Single(i => i.Id.Equals(new ItemId(this.ItemId)));

            Check.That(item.History.Any(row => row.Contains(historyRow))).IsTrue();
        }