public static TokenRequestLog GetTokenRequestLog() { var tokenRequestLog = new TokenRequestLog(); tokenRequestLog.OrganizationId = LongOne; tokenRequestLog.OrganizationUid = UidOne; tokenRequestLog.OrganizationName = StringOne; tokenRequestLog.IntegrationId = LongOne; tokenRequestLog.IntegrationUid = UidOne; tokenRequestLog.IntegrationName = StringOne; tokenRequestLog.IntegrationClientId = LongOne; tokenRequestLog.IntegrationClientUid = UidOne; tokenRequestLog.IntegrationClientName = StringOne; tokenRequestLog.Id = LongOne; tokenRequestLog.Uid = UidOne; tokenRequestLog.Name = StringOne; tokenRequestLog.CreatedAt = DateTimeOne; tokenRequestLog.City = StringOne; tokenRequestLog.Country = StringOne; tokenRequestLog.Ip = IpOne; return(tokenRequestLog); }
public TokenRequestLogDto CreateDtoFromEntity(TokenRequestLog entity) { var dto = new TokenRequestLogDto(); dto.Uid = entity.Uid; dto.TokenUid = entity.TokenUid; dto.IntegrationClientUid = entity.IntegrationClientUid; dto.HttpMethod = entity.HttpMethod; dto.Ip = entity.Ip; dto.Country = entity.Country; dto.City = entity.City; dto.ResponseCode = entity.ResponseCode; dto.OrganizationUid = entity.OrganizationUid; dto.OrganizationName = entity.OrganizationName; dto.IntegrationUid = entity.IntegrationUid; dto.IntegrationName = entity.IntegrationName; return(dto); }