public void Validate_Error() { var command = new ProviderProjectCreateCommand(null, new Project()); var message = new ProviderCommandMessage(command, "http://localhost/callback"); var result = message.Validate(); Assert.False(result.IsValid); }
public void Validate_Success() { var command = new ProviderProjectCreateCommand(new User(), new Project()); var message = new ProviderCommandMessage(command, "http://localhost/callback"); var result = message.Validate(); Assert.True(result.IsValid); }