Ejemplo n.º 1
0
        public async Task AddUserAsBuyer_UniqueEmailPhoneNumber_HappyFlow()
        {
            Users user = new Users
            {
                UserFullName = "John",
                PhoneNumber  = "9879856787",
                Email        = "*****@*****.**",
                Location     = "Hyderabad",
                Password     = "******",
                UserRole     = 2
            };

            _userRepositoryMock.Setup(b => b.AddUserRegistrationDetails(It.IsAny <Users>())).ReturnsAsync(true);
            var testResult = await _userServices.AddUserRegistrationDetails(user);

            Assert.AreEqual(true, testResult);
        }