Exemplo n.º 1
0
        public void BatchListViewModel_HasExistingBatches_WhenConstructed()
        {
            IList <Donkey> batches = new List <Donkey>
            {
                CreateRandom <Donkey>(),
                CreateRandom <Donkey>(),
            };
            IDonkeyService donkeyService = new FakeDonkeyService(batches);

            DonkeyListViewModel systemUnderTest = CreateSystemUnderTest(donkeyService);

            systemUnderTest.Batches.Should().BeEquivalentTo(batches);
        }
Exemplo n.º 2
0
 public DonkeyListViewModelTest()
 {
     _fakeDonkeyService.Clear();
     _systemUnderTest = CreateSystemUnderTest(_fakeDonkeyService);
 }