public void RepoEnsureICanCreateAnInstance() { HGRepo Repo = new HGRepo(); Assert.IsNotNull(Repo); }
public void Initialize() { mock_bill_table = new Mock<DbSet<Bill>>(); mock_issue_table = new Mock<DbSet<Issue>>(); mock_user_table = new Mock<DbSet<ApplicationUser>>(); mock_vote_table = new Mock<DbSet<Vote>>(); mock_context = new Mock<HGContext>(); Repo = new HGRepo(mock_context.Object); bill_datasource = new List<Bill>(); issue_datasource = new List<Issue>(); user_datasource = new List<ApplicationUser>(); vote_datasource = new List<Vote>(); bill_data = bill_datasource.AsQueryable(); issue_data = issue_datasource.AsQueryable(); user_data = user_datasource.AsQueryable(); vote_data = vote_datasource.AsQueryable(); }