Beispiel #1
0
        public void GivenUserNotAlreadyInDb_WhenDeleteAccountCalled_ReturnTrue()
        {
            using (var scope = Container.BeginLifetimeScope())
            {
                // Arrange
                User user = _mockData.FakeUser2;
                UserSignUpViewModel signUpViewModel = new UserSignUpViewModel()
                {
                    FirstName = user.FirstName,
                    LastName  = user.LastName,
                    City      = user.City,
                    Email     = user.Email,
                    Password  = user.Password
                };

                _profilesService = scope.Resolve <ProfileService>();
                _signUpService   = scope.Resolve <SignUpService>();


                // Act
                var result = _profilesService.DeleteUserAccount(user);

                // Assert
                Assert.That(result, Is.Not.Null);
                Assert.That(result, Is.InstanceOf <bool>());
                Assert.That(result, Is.EqualTo(false));
            }
        }