Exemplo n.º 1
0
    public async Task GettingTeamsForANonExistentEventReturns404NotFound()
    {
        var api      = new AspenApi();
        var response = api.GetTeamsByEvent(int.MaxValue);

        response.StatusCode.Should().Be(System.Net.HttpStatusCode.NotFound);
    }
    public async Task DeletingATeamWithAssociatedDonationsReturnsABadRequest()
    {
        var client   = new AspenApi().Client;
        var request  = new RestRequest($"api/teams/{team2.ID}");
        var response = client.Delete(request);

        response.StatusCode.Should().Be(System.Net.HttpStatusCode.BadRequest);
    }