예제 #1
0
        public void WithEmptyAccessTokenReturnsSameStub()
        {
            var stub = new ClientStub <ServiceClient>(new ServiceClient());

            var stub2 = stub.WithAccess(null);

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

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

            stub.Should().Be(stub2);
        }
예제 #3
0
        public void WithNonEmptyAccessTokenGeneratesNewStub()
        {
            var stub = new ClientStub <ServiceClient>(new ServiceClient());

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

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