public void WithClientId_WhenCalled_ReturnsClientSecretIdentityBuilder()
        {
            IClientSecretIdentityBuilder sut = CreateSut();

            IClientSecretIdentityBuilder result = sut.WithClientId(Fixture.Create <string>());

            Assert.That(result, Is.EqualTo(sut));
        }
        public void Build_WhereWithClientIdHasBeenCalled_AssertCorrectClientId()
        {
            IClientSecretIdentityBuilder sut = CreateSut();

            string clientId = Fixture.Create <string>();
            IClientSecretIdentity result = sut.WithClientId(clientId).Build();

            Assert.That(result.ClientId, Is.EqualTo(clientId));
        }
        public void WithClientId_WhenClientIdIsWhiteSpace_ThrowsArgumentNullException()
        {
            IClientSecretIdentityBuilder sut = CreateSut();

            ArgumentNullException result = Assert.Throws <ArgumentNullException>(() => sut.WithClientId(" "));

            Assert.That(result.ParamName, Is.EqualTo("clientId"));
        }