public void SignUp_WhenUserInsertedOk_ThenNoExceptions_Test()
 {
     var userRepositoryMock = new Mock<IUserRepository>();
     userRepositoryMock.Setup(ur => ur.Get(It.Is<string>(v => v == "*****@*****.**"))).Returns(new User
     {
         Email = "*****@*****.**",
         Password = "******"
     });
     UsingAuthenticationService(a =>
     {
         //Assign
         var user = new User
         {
             Email = "email",
             FirstName = "firstName",
             LastName = "lastName",
             Password = "******",
             UserType = UserType.Child
         };
         //Assert
         Assert.DoesNotThrow(() =>
         {
             a.SignUp(user);
         });
     }, userRepositoryMock.Object);
 }
 public void SignUp(User user)
 {
     _userRepository.Add(user);
 }