Exemplo n.º 1
0
 public AccessTokenTest()
 {
     var dataModule = new CloudCoreDataModule();
     IoC.Initialize();
     IoC.ScanModule(dataModule);
     IoC.AdditionalConfiguration(dataModule);
 }
Exemplo n.º 2
0
 private void SetupIocForDataTests()
 {
     var dataModule = new CloudCoreDataModule();
     IoC.Initialize();
     IoC.ScanModule(dataModule);
     IoC.AdditionalConfiguration(dataModule);
 }
        public AuthenticationControllerTest()
        {
            defaultAdminPassword = new Password(DefaultAdminPasswordString);
            var dataModule = new CloudCoreDataModule();
            IoC.Initialize();
            IoC.ScanModule(dataModule);
            IoC.AdditionalConfiguration(dataModule);

            //var mailMan = MockHelper.CreateSimpleGenericMock<IMailMan>();
            //apiController = new AuthenticationController(Repository.Instance, new InMemoryCacheProvider(new CachePolicyFake()), mailMan);
            MockAuthContext(apiController);
            CloudCoreDB.Context.Cloudcore_UserPasswordUpdate(0, defaultAdminPassword.CreatePasswordHash(0));
            FakeIdentity(1, 0);
        }