From 05a8c476835ed266efabc0d11532e5615aa34da2 Mon Sep 17 00:00:00 2001 From: David Rouyer Date: Thu, 24 Jun 2021 11:37:22 +0200 Subject: [PATCH] fix: tests --- src/Pipedrive.net.Tests/Clients/SubscriptionsClientTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); } }