コード例 #1
0
        public void RepoEnsureIHaveAContext()
        {
            PtPathRepository repo = new PtPathRepository();
            var actual            = repo.Context;

            Assert.IsInstanceOfType(actual, typeof(PtPathContext));
        }
コード例 #2
0
 public void Cleanup()
 {
     mock_context   = null;
     mock_set       = null;
     mock_set_users = null;
     repo           = null;
     test_user      = null;
     test_user2     = null;
 }
コード例 #3
0
 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"
     };
 }
コード例 #4
0
 public BiopsiesController() : base()
 {
     Repo = new PtPathRepository();
 }
コード例 #5
0
        public void RepoEnsureICanCreateInstanceOfRepository()
        {
            PtPathRepository repo = new PtPathRepository();

            Assert.IsNotNull(repo);
        }