Beispiel #1
0
        public void TestInitialize()
        {
            EducationContext = new EducationDataContext();
            Container        = AssemblySetup.CreateWindsorContainer(EducationContext);
            RepositoryContainer repositoryContainer = new RepositoryContainer(Container, EducationContext);

            Target = new ServiceRequestManager(repositoryContainer);
            User   = new EducationSecurityPrincipal(new UserRepository(EducationContext).Items.Where(s => s.UserKey == "Bob").Include("UserRoles.Role").Single());
        }
 public void InitializeTest()
 {
     Target = new ServiceRequestManager(Repositories.MockRepositoryContainer);
 }
 public void TestInitialize()
 {
     EducationContext = new EducationDataContext();
     Container = AssemblySetup.CreateWindsorContainer(EducationContext);
     RepositoryContainer repositoryContainer = new RepositoryContainer(Container, EducationContext);
     Target = new ServiceRequestManager(repositoryContainer);
     User = new EducationSecurityPrincipal(new UserRepository(EducationContext).Items.Where(s => s.UserKey == "Bob").Include("UserRoles.Role").Single());
 }
Beispiel #4
0
 public void InitializeTest()
 {
     Target = new ServiceRequestManager(Repositories.MockRepositoryContainer);
 }