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

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

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

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

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