public void SendsUpdateToCorrectUrl() { var endpoint = new Uri("user/emails", UriKind.Relative); var client = Substitute.For <IApiConnection>(); var usersClient = new UsersClient(client); usersClient.GetEmails(); client.Received().Get <IReadOnlyCollection <EmailAddress> >(endpoint, null); }
public void SendsUpdateToCorrectUrl() { var endpoint = new Uri("user/emails", UriKind.Relative); var client = Substitute.For<IApiConnection>(); var usersClient = new UsersClient(client); usersClient.GetEmails(); client.Received().Get<IReadOnlyCollection<EmailAddress>>(endpoint, null); }