public void ToGetContactCollectionQuery_WhenCalled_ReturnsGetContactCollectionQuery() { IExportContactCollectionQuery sut = CreateSut(); IGetContactCollectionQuery result = sut.ToGetContactCollectionQuery(); Assert.That(result, Is.TypeOf <GetContactCollectionQuery>()); }
public void ToGetContactCollectionQuery_WhenCalled_ReturnsNotNull() { IExportContactCollectionQuery sut = CreateSut(); IGetContactCollectionQuery result = sut.ToGetContactCollectionQuery(); Assert.That(result, Is.Not.Null); }
public void ToGetContactCollectionQuery_WhenCalled_ReturnsGetContactCollectionQueryWithExpiresFromExportContactCollectionQuery() { DateTime expires = DateTime.Now.AddSeconds(_random.Next(60, 100)); IExportContactCollectionQuery sut = CreateSut(expires: expires); IGetContactCollectionQuery result = sut.ToGetContactCollectionQuery(); Assert.That(result.Expires, Is.EqualTo(expires)); }
public void ToGetContactCollectionQuery_WhenCalled_ReturnsGetContactCollectionQueryWithRefreshTokenFromExportContactCollectionQuery() { string refreshToken = _fixture.Create <string>(); IExportContactCollectionQuery sut = CreateSut(refreshToken: refreshToken); IGetContactCollectionQuery result = sut.ToGetContactCollectionQuery(); Assert.That(result.RefreshToken, Is.EqualTo(refreshToken)); }
public void ToGetContactCollectionQuery_WhenCalled_ReturnsGetContactCollectionQueryWithTokenTypeFromExportContactCollectionQuery() { string tokenType = _fixture.Create <string>(); IExportContactCollectionQuery sut = CreateSut(tokenType); IGetContactCollectionQuery result = sut.ToGetContactCollectionQuery(); Assert.That(result.TokenType, Is.EqualTo(tokenType)); }