Ejemplo n.º 1
0
        public void WithEmptyAccessTokenReturnsSameStub()
        {
            var stub = new ClientStub <ServiceClient>(new ServiceClient());

            var stub2 = stub.WithAccess(null);

            stub.Should().Be(stub2);
        }
Ejemplo n.º 2
0
        public void WithDuplicateAccessTokenReturnsSameStub()
        {
            var stub = new ClientStub <ServiceClient>(new ServiceClient(), "accessToken");

            var stub2 = stub.WithAccess("accessToken");

            stub.Should().Be(stub2);
        }
Ejemplo n.º 3
0
        public void WithNonEmptyAccessTokenGeneratesNewStub()
        {
            var stub = new ClientStub <ServiceClient>(new ServiceClient());

            var stub2 = stub.WithAccess("accessToken");

            stub.Should().NotBe(stub2);
        }