public void RepoEnsureIHaveAContext() { PtPathRepository repo = new PtPathRepository(); var actual = repo.Context; Assert.IsInstanceOfType(actual, typeof(PtPathContext)); }
public void Cleanup() { mock_context = null; mock_set = null; mock_set_users = null; repo = null; test_user = null; test_user2 = null; }
public void Initialize() { mock_context = new Mock <PtPathContext>(); mock_set = new Mock <DbSet <Biopsy> >(); mock_set_users = new Mock <DbSet <ProviderUser> >(); repo = new PtPathRepository(mock_context.Object); test_user = new ApplicationUser { Email = "*****@*****.**", Id = "MyId" }; test_user2 = new ApplicationUser { Email = "Jonesgmail.com", Id = "MyId2" }; }
public BiopsiesController() : base() { Repo = new PtPathRepository(); }
public void RepoEnsureICanCreateInstanceOfRepository() { PtPathRepository repo = new PtPathRepository(); Assert.IsNotNull(repo); }