示例#1
0
        public void ReadMethod_ShouldReadProviderFromProviderRepository()
        {
            //ASSEMBLE
            int testId = 1;

            //ACT
            var result = ServiceProviderRepository.Read(testId);

            //ASSERT
            Assert.NotNull(result);
        }
示例#2
0
        public void ReadMethod_ReturnsNullWhenItemNotFound()
        {
            //ASSEMBLE
            int testId = 100;

            //ACT
            var result = ServiceProviderRepository.Read(testId);

            //ASSERT
            Assert.Null(result);
        }
示例#3
0
 // GET: ServiceProvider/Delete/5
 public ActionResult Delete(int id)
 {
     return(View(ServiceProviderRepository.Read(id)));
 }