Пример #1
0
        public void TestGet()
        {
            var result = controller.Get(2);

            mockDatabase.VerifyGet(x => x.Medications, Times.Once);
            verifyStandardMedication(result, 2);
        }
        public void Get_Returns_List_Of_Medications()
        {
            var expected = new List <Medication>();

            repo.GetAll().Returns(expected);

            var result = underTest.Get();

            Assert.IsType <List <Medication> >(result.Value);
        }