Beispiel #1
0
        public async Task LoginInternalServerError500()
        {
            var userController = new BookStoreApi.Controllers.UsersController(
                new FakeSignInManager <AppUser>(),
                new FakeUserManager <AppUser>(),
                ConfigurationProvider.BuildConfiguration(),
                new Mocks.MockLogger <BookStoreApi.Controllers.UsersController>(),
                null
                );
            var result = (ObjectResult)await userController.Login(new UserLoginDTO()
            {
                Login    = "******",
                Password = "******"
            });

            Assert.AreEqual(StatusCodes.Status500InternalServerError, result.StatusCode);
        }