public static Create ( bool isValid, bool isExisting ) : |
||
isValid | bool | |
isExisting | bool | |
return |
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)); }
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)); }