Ejemplo n.º 1
0
        public async Task Registration_ServiceInvoke()
        {
            //Assert
            var registrationModel = new RegistrationModel
            {
                Name     = "UserName",
                Surname  = "UserSurname",
                Password = "******"
            };

            //Act
            await _authController.CreateUser(registrationModel);

            //Assert
            _userServiceMock.Verify(s => s.CreateUser(It.IsAny <UserDto>()));
        }