Askme.Domain.UserTest.TestUserRegistrationIfUserNotPresent C# (CSharp) Method

TestUserRegistrationIfUserNotPresent() private method

private TestUserRegistrationIfUserNotPresent ( ) : void
return void
        public void TestUserRegistrationIfUserNotPresent()
        {
            User user = new User("ShilpaG", "test123", "[email protected]");
            var mock = new Mock<IRepository>();
            mock.Setup(ps => ps.IsUserPresent(user.Username)).Returns(false).AtMostOnce();
            Assert.IsTrue(user.Register(mock.Object));
            mock.VerifyAll();
        }