Ejemplo n.º 1
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);
            }
Ejemplo n.º 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);
            }