示例#1
0
        public void GetRegistrationStrategy_PassMrGreenUser_ReturnMrGreenUserRegisterStrategy()
        {
            //Arrange
            User mrGreenUser = new MrGreenUser();

            // Act
            var strategy = _userRegisterResolver.GetRegistrationStrategy(mrGreenUser);

            //Assert
            Assert.IsInstanceOf(typeof(MrGreenRegisterStrategy), strategy);
        }
示例#2
0
        public Task RegisterUser(User user)
        {
            var strategy = _userResolver.GetRegistrationStrategy(user);

            return(strategy.RegisterUserAsync(user));
        }