public async Task Register_Success_ReturnsOkResponse()
        {
            _taxiCompanyService.AddTaxiCompanyAsync(null).ReturnsForAnyArgs(new RegisterResponseTaxiCompany());

            var response = await _taxiCompanyController.Register(null) as ObjectResult;

            Assert.That(response.StatusCode, Is.EqualTo(StatusCodes.Status200OK));
        }
Exemple #2
0
        public async Task <IActionResult> Register(RegisterRequest request)
        {
            var response = await _taxiCompanyService.AddTaxiCompanyAsync(request);

            return(Ok(response));
        }