Example #1
0
        public void Get_Returns_List_of_Scientists()
        {
            var expectedScientist = new List <Scientist>()
            {
                new Scientist(1, "first scientist"),
                new Scientist(2, "second scientist"),
            };

            scientistRepo.GetAll().Returns(expectedScientist);

            var result = underTest.Get();

            Assert.Equal(expectedScientist, result.ToList());
        }