public async void AuthenticatePartner() { var controller = new PartnerController(partnerService, mapper, appSettings); var model = new PartnerLoginViewModel() { Name = "ikea", Password = "******", }; var response = await controller.Authenticate(model); var okResult = response as OkObjectResult; Assert.NotNull(okResult); Assert.Equal(200, okResult.StatusCode); Assert.NotNull(okResult.Value); var token = okResult.Value as dynamic; Assert.NotNull(token); }