public void ReadMethod_ShouldReadProviderFromProviderRepository() { //ASSEMBLE int testId = 1; //ACT var result = ServiceProviderRepository.Read(testId); //ASSERT Assert.NotNull(result); }
public void ReadMethod_ReturnsNullWhenItemNotFound() { //ASSEMBLE int testId = 100; //ACT var result = ServiceProviderRepository.Read(testId); //ASSERT Assert.Null(result); }
// GET: ServiceProvider/Delete/5 public ActionResult Delete(int id) { return(View(ServiceProviderRepository.Read(id))); }