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);
            }
Example #2
0
            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);
            }