Ejemplo n.º 1
0
 public void OnTestSetup()
 {
     string pass;
     _host = new ServiceTestAppHost();
     _host.Init();
     _host.Start(ServiceTestAppHost.BaseUrl);
     _client = new JsonServiceClient(ServiceTestAppHost.BaseUrl);
     _testUser = DbDataGenerator.AddUserToDatabase(out pass);
     _client.Post(new Auth {provider = "credentials", UserName = _testUser.Email, Password = pass});
 }
Ejemplo n.º 2
0
 public void OnTestSetup()
 {
     _host = new ServiceTestAppHost();
     _host.Init();
     _host.Start(ServiceTestAppHost.BaseUrl);
     _client = new JsonServiceClient(ServiceTestAppHost.BaseUrl);
     IocBox.Kernel = new StandardKernel(new RealDomainModule(), new RealInfrastructureModule());
     string pass;
     _testUser = DbDataGenerator.AddUserToDatabase(out pass);
     _testBlueprint = DbDataGenerator.AddBlueprintToDatabase(_testUser.Id);
     _client.Send(new Auth {UserName = _testUser.Email, Password = pass});
 }