public void GetRegistrationStrategy_PassMrGreenUser_ReturnMrGreenUserRegisterStrategy() { //Arrange User mrGreenUser = new MrGreenUser(); // Act var strategy = _userRegisterResolver.GetRegistrationStrategy(mrGreenUser); //Assert Assert.IsInstanceOf(typeof(MrGreenRegisterStrategy), strategy); }
public Task RegisterUser(User user) { var strategy = _userResolver.GetRegistrationStrategy(user); return(strategy.RegisterUserAsync(user)); }