BinaryStudio.TaskManager.Logic.Tests.UserProcessorTests.Should_CreateNewUser_WhenThisUserNotExistingYet C# (CSharp) Method

Should_CreateNewUser_WhenThisUserNotExistingYet() private method

private Should_CreateNewUser_WhenThisUserNotExistingYet ( ) : void
return void
        public void Should_CreateNewUser_WhenThisUserNotExistingYet()
        {            
            const string Username = "username";
            const string Password = "password";
            const string Email = "[email protected]";                        
            this.userRepositoryMock.Setup(x => x.GetByName(Username)).Returns((User)null);

            // act
            var result = this.userProcessor.CreateUser(Username, Password, Email, string.Empty, null, null);

            // assert
            Assert.AreEqual(result, true);            
        }