public void GetAllAdmins_ShouldWorkOnInitialisation() { // Arrange AdminContainer adminContainer = new AdminContainer(repo.CreateAdminContainerDAL(), repo.CreateAdminDAL()); int expected = TestDB.GetAdminTable().Count; // Act int result = adminContainer.Admins.Count; // Assert Assert.Equal(expected, result); }
public AdminContainerTests() { repo = new InMemRepository(); container = new AdminContainer(repo.CreateAdminContainerDAL(), repo.CreateAdminDAL()); }