public FeedControllerTests(SbWebApplicationFactory factory)
 {
     _client = factory.CreateClient(new WebApplicationFactoryClientOptions()
     {
         AllowAutoRedirect = false
     });
 }
        //private readonly UriBuilder _uri = new UriBuilder()
        //{
        //    Path = "api/account"
        //};

        public AccountControllerTests(SbWebApplicationFactory factory)
        {
            _client = factory.CreateClient();
        }
Beispiel #3
0
 public StudyRoomApiTests(SbWebApplicationFactory factory)
 {
     _client = factory.CreateClient();
 }
Beispiel #4
0
 public HomePageControllerTests(SbWebApplicationFactory factory)
 {
     _client = factory.CreateClient();
 }
/*
 *      private readonly object _cred = new
 *      {
 *          confirmPassword = "******",
 *          email = "*****@*****.**",
 *          password = "******"
 *      };
 */

        //private UriBuilder _uri = new UriBuilder()
        //{
        //    Path = "api/register"
        //};



        public RegisterControllerTests(SbWebApplicationFactory factory)
        {
            _client = factory.CreateClient();
            _client.DefaultRequestHeaders.Referrer = new Uri(_swaggerLink);
        }
Beispiel #6
0
 public CouponController(SbWebApplicationFactory factory)
 {
     _client = factory.CreateClient();
 }
Beispiel #7
0
 public UniversityControllerTests(SbWebApplicationFactory factory)
 {
     _client = factory.CreateClient();
 }