Пример #1
0
        public async Task AddUserAsBuyer_UniqueEmailPhoneNumber_HappyFlow()
        {
            Users user = new Users
            {
                UserFullName = "John",
                PhoneNumber  = "9879856787",
                Email        = "*****@*****.**",
                Location     = "Hyderabad",
                Password     = "******",
                UserRole     = 1
            };
            CancellationToken cancellationToken = CancellationToken.None;

            _orchard1Context.Setup(o => o.SaveChangesAsync(cancellationToken)).Returns(Task.FromResult(1));
            bool isUserAdded = await userRepository.AddUserRegistrationDetails(user);

            Assert.IsTrue(isUserAdded);
        }
Пример #2
0
 public async Task <bool> AddUserRegistrationDetails(Users user)
 {
     return(await _UserData.AddUserRegistrationDetails(user));
 }