public ADMembershipServiceTestFacade(ADMembershipService service, ADTestSupport testSupport)
        {
            _service = service;
            _testSupport = testSupport;

            var adminId = Guid.NewGuid();
            ADBackend.Instance.Users.Add(new UserModel() { Username = "******", Id = adminId });
            ADBackend.Instance.Roles.Add(new RoleModel() { Name  = "Administrator", Id = Guid.NewGuid(), Members = new[] { adminId } });
            Assert.AreEqual(1, ADBackend.Instance.Users.Count());
        }
 public void Initialize()
 {
     _testSupport = new ADTestSupport();
     _repo = new ADRepositoryRepository();
 }
 public void Initialize()
 {
     _testSupport = new ADTestSupport();
     InitialiseTestObjects();
 }
 public void Initialize()
 {
     _testSupport = new ADTestSupport();
     _service = new ADMembershipServiceTestFacade(new ADMembershipService(), _testSupport);
 }
예제 #5
0
 public void Initialize()
 {
     _testSupport = new ADTestSupport();
     InitialiseTestObjects();
 }
예제 #6
0
 public void Initialize()
 {
     _testSupport = new ADTestSupport();
     _service     = new ADMembershipServiceTestFacade(new ADMembershipService(), _testSupport);
 }
예제 #7
0
 public void Initialize()
 {
     _testSupport = new ADTestSupport();
     _repo        = new ADRepositoryRepository();
 }