public AuthClientTests(ClientFixture clientFixture)
     : base(clientFixture)
 {
     _repository  = new UserRepository(clientFixture.LiteRepository);
     _hashService = new HashService();
     clientFixture.LiteRepository.Engine.DropCollection("security");
 }
Exemple #2
0
        public ScriptsClientTests(ClientFixture clientFixture)
            : base(clientFixture)
        {
            if (Directory.Exists("Scripts"))
            {
                Directory.Delete("Scripts", true);
            }

            Directory.CreateDirectory("Scripts");
        }
 public PackagesClientTests(ClientFixture clientFixture)
     : base(clientFixture)
 {
     if (!Directory.Exists("Packages"))
     {
         Directory.CreateDirectory("Packages");
     }
     else
     {
         Directory.Delete("Packages", true);
         Directory.CreateDirectory("Packages");
     }
 }
Exemple #4
0
 public PackagesClientTests(ClientFixture clientFixture)
     : base(clientFixture)
 {
 }
 public ClientBaseTests(ClientFixture clientFixture)
 {
     Client     = new WebApiClient(clientFixture.Server.CreateClient());
     Server     = clientFixture.Server;
     Repository = clientFixture.LiteRepository;
 }
 public HealthCheckClientTests(ClientFixture clientFixture)
     : base(clientFixture)
 {
 }