Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidRouyer committed Jun 24, 2021
1 parent 8c203a7 commit 05a8c47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Pipedrive.net.Tests/Clients/SubscriptionsClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ public void PutsToTheCorrectUrl()
var connection = Substitute.For<IApiConnection>();
var client = new SubscriptionsClient(connection);

var updatedSubscription = new RecurringSubscriptionUpdate() { Currency = "EUR", CadenceType = "monthly", CycleAmount = 100, StartDate = DateTime.UtcNow };
var updatedSubscription = new RecurringSubscriptionUpdate() { CycleAmount = 100, EffectiveDate = DateTime.UtcNow.Date };
client.EditRecurring(1, updatedSubscription);

connection.Received().Put<Subscription>(Arg.Is<Uri>(u => u.ToString() == "subscriptions/recurring/1"),
Arg.Is<RecurringSubscriptionUpdate>(d => d.Currency == "EUR" && d.CadenceType == "monthly" && d.CycleAmount == 100));
Arg.Is<RecurringSubscriptionUpdate>(d => d.CycleAmount == 100 && d.EffectiveDate == DateTime.UtcNow.Date));
}
}

Expand Down

0 comments on commit 05a8c47

Please sign in to comment.