diff --git a/src/Pipedrive.net.Tests/Clients/SubscriptionsClientTests.cs b/src/Pipedrive.net.Tests/Clients/SubscriptionsClientTests.cs index 21324242..b0380fe0 100644 --- a/src/Pipedrive.net.Tests/Clients/SubscriptionsClientTests.cs +++ b/src/Pipedrive.net.Tests/Clients/SubscriptionsClientTests.cs @@ -147,11 +147,11 @@ public void PutsToTheCorrectUrl() var connection = Substitute.For(); 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(Arg.Is(u => u.ToString() == "subscriptions/recurring/1"), - Arg.Is(d => d.Currency == "EUR" && d.CadenceType == "monthly" && d.CycleAmount == 100)); + Arg.Is(d => d.CycleAmount == 100 && d.EffectiveDate == DateTime.UtcNow.Date)); } }