Exemplo n.º 1
0
        public SmsTests(CustomWebAppFactory <Startup> factory)
        {
            this.factory = factory;

            client             = factory.CreateClient();
            client.BaseAddress = new Uri(client.BaseAddress, factory.ApiVersionPrefix);
        }
Exemplo n.º 2
0
        public CalculaJurosControllerIntegrationTests()
        {
            jurosClientMock = new Mock <IJurosClient>();
            var factory = new CustomWebAppFactory <Startup>(ChangeDependency);

            client = factory.CreateClient();
        }
Exemplo n.º 3
0
        public SignUpTests(CustomWebAppFactory <Startup> factory, DatabaseFixture fixture, ITestOutputHelper output)
        {
            this.fixture = fixture;
            this.factory = factory;
            this.output  = output;

            client             = factory.CreateClient();
            client.BaseAddress = new Uri(client.BaseAddress, factory.ApiVersionPrefix);
        }
Exemplo n.º 4
0
 public GetRidesharesListTests(CustomWebAppFactory <Startup> factory)
 {
     _factory = factory;
 }
 public GetCarDetailTests(CustomWebAppFactory <Startup> factory)
 {
     _factory = factory;
 }
Exemplo n.º 6
0
 public UserControllerTests(CustomWebAppFactory <RabblyApi.Api.Startup> factory)
 {
     _client  = factory.CreateClient();
     _context = factory.MyDbContext;
     CreateDefaultUser().Wait();
 }
Exemplo n.º 7
0
 public GetCarsListTests(CustomWebAppFactory <Startup> factory)
 {
     _factory = factory;
 }
Exemplo n.º 8
0
 public EmployeeServiceTests(CustomWebAppFactory <Startup> factory)
 {
     _employeeService = factory.GetEmployeeService();
     _testingOptions  = new EmployeeServiceTestingOptions(100, 10, 20);
 }
Exemplo n.º 9
0
 public GetEmployeesListTests(CustomWebAppFactory <Startup> factory)
 {
     _factory = factory;
 }
Exemplo n.º 10
0
 public HardwareVaultServiceTests(CustomWebAppFactory <Startup> factory)
 {
     _hardwareVaultService = factory.GetHardwareVaultService();
     _testingOptions       = new HardwareVaultServiceTestingOptions(100, 30, "1234567", 20, factory.GetHardwareVaultRepository(), factory.GetHardwareVaultProfileRepository());
 }
 public UpdateRideshareTests(CustomWebAppFactory <Startup> factory)
 {
     _factory = factory;
 }
Exemplo n.º 12
0
        public ShowMeTheCodeControllerIntegrationTests()
        {
            var factory = new CustomWebAppFactory <Startup>();

            client = factory.CreateClient();
        }