ServiceStack.Common.Tests.Models.ModelWithFieldsOfNullableTypes.Create C# (CSharp) Method

Create() public static method

public static Create ( int id ) : ModelWithFieldsOfNullableTypes
id int
return ModelWithFieldsOfNullableTypes
        public static ModelWithFieldsOfNullableTypes Create(int id)
        {
            var row = new ModelWithFieldsOfNullableTypes
            {
                Id = id,
                NId = id,
                NBool = id % 2 == 0,
                NDateTime = DateTime.Now.AddDays(id),
                NFloat = 1.11f + id,
                NDouble = 1.11d + id,
                NGuid = Guid.NewGuid(),
                NLongId = 999 + id,
                NDecimal = id + 0.5m,
                NTimeSpan = TimeSpan.FromSeconds(id),
            };

            return row;
        }
ModelWithFieldsOfNullableTypes