public void WithEmptyAccessTokenReturnsSameStub() { var stub = new ClientStub <ServiceClient>(new ServiceClient()); var stub2 = stub.WithAccess(null); stub.Should().Be(stub2); }
public void WithDuplicateAccessTokenReturnsSameStub() { var stub = new ClientStub <ServiceClient>(new ServiceClient(), "accessToken"); var stub2 = stub.WithAccess("accessToken"); stub.Should().Be(stub2); }
public void WithNonEmptyAccessTokenGeneratesNewStub() { var stub = new ClientStub <ServiceClient>(new ServiceClient()); var stub2 = stub.WithAccess("accessToken"); stub.Should().NotBe(stub2); }