コード例 #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)));
 }