예제 #1
0
        public async Task UpdateTest()
        {
            var fakeRepository      = Mock.Of <IPrescriptionRepository>();
            var prescriptionService = new PrescriptionService(fakeRepository);

            var prescription = new Prescription()
            {
                PatientName = "Dias", Instruction = "Not for a child", Frequency = "2 times a day"
            };
            await prescriptionService.Update(prescription);
        }