Create() public static method

public static Create ( bool isValid, bool isExisting ) : UserProfileResultMock
isValid bool
isExisting bool
return UserProfileResultMock
Beispiel #1
0
        public IUserProfileServiceResult DeleteUserProfile(IUserCredentials credMock, ILogger logger)
        {
            if (!TestingValidParse)
            {
                // If parse succeeded but did not generate an object,
                // for example, JSON parse of white spaces.
                credMock.Should().BeNull();
                return(UserProfileResultMock.Create(false, false));
            }

            ValidateUsername(credMock?.Username);
            ValidateDomain(credMock?.Domain);
            ValidateSid(credMock?.Sid);

            return(UserProfileResultMock.Create(TestingValidAccount, TestingExistingAccount));
        }
Beispiel #2
0
 public IUserProfileServiceResult DeleteUserProfile(IUserCredentials credentails, ILogger logger)
 {
     // The fuzz test generated a valid parse-able JSON for the test we fail the login
     return(UserProfileResultMock.Create(false, false));
 }