Esempio n. 1
0
    public async Task ValidateAsync_Error()
    {
        var command = new ProjectCreateCommand(null, new Project());

        var result = await command.ValidateAsync(validatorProvider).ConfigureAwait(false);

        Assert.False(result.IsValid);
    }
Esempio n. 2
0
    public async Task ValidateAsync_Success()
    {
        var command = new ProjectCreateCommand(new User(), new Project());

        var result = await command.ValidateAsync(validatorProvider).ConfigureAwait(false);

        Assert.True(result.IsValid);
    }