public void RequestsTheCorrectlUrl()
            {
                var connection = Substitute.For<IApiConnection>();
                var client = new TeamsClient(connection);

                client.Get(1);

                connection.Received().Get<Team>(Arg.Is<Uri>(u => u.ToString() == "teams/1"), null);
            }
            public void RequestsTheCorrectlUrl()
            {
                var connection = Substitute.For <IApiConnection>();
                var client     = new TeamsClient(connection);

                client.Get(1);

                connection.Received().Get <Team>(Arg.Is <Uri>(u => u.ToString() == "teams/1"), null);
            }
Exemple #3
0
            public void RequestsTheCorrectUrl()
            {
                var connection = Substitute.For <IApiConnection>();
                var client     = new TeamsClient(connection);

                client.Get(1);

                connection.Received().Get <Team>(
                    Arg.Is <Uri>(u => u.ToString() == "teams/1"),
                    null,
                    "application/vnd.github.hellcat-preview+json");
            }