Ejemplo n.º 1
0
    public async Task ReturnsSeedProjectGivenId1()
    {
        var result = await _client.GetAndDeserialize <GetProjectByIdResponse>(GetProjectByIdRequest.BuildRoute(1));

        Assert.Equal(1, result.Id);
        Assert.Equal(SeedData.TestProject1.Name, result.Name);
        Assert.Equal(3, result.Items.Count);
    }
Ejemplo n.º 2
0
        public static void Validate(this GetProjectByIdRequest request)
        {
            Validators.ValidateId(request.Id, request.Context);

            Validators.MakeGoodOrBad(request.Context);
        }
Ejemplo n.º 3
0
    public async Task ReturnsNotFoundGivenId0()
    {
        string route = GetProjectByIdRequest.BuildRoute(0);

        _ = await _client.GetAndEnsureNotFound(route);
    }