예제 #1
0
        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);
        }
예제 #2
0
 public AdminContainerTests()
 {
     repo      = new InMemRepository();
     container = new AdminContainer(repo.CreateAdminContainerDAL(), repo.CreateAdminDAL());
 }