Пример #1
0
 public static StubRequestWithEnum GetRequest()
 {
     var req = new StubRequestWithEnum();
     req.Id = _random.Next();
     req.Name = Guid.NewGuid().ToString();
     req.CreatedOn = DateTime.UtcNow.Date.AddDays(_random.Next(100, 1000) * -1);
     req.Status = _random.Next() % 2 == 0 ? Status.Deprecated : Status.InUse;
     return req;
 }
        public static StubRequestWithEnum GetRequest()
        {
            var req = new StubRequestWithEnum();

            req.Id        = _random.Next();
            req.Name      = Guid.NewGuid().ToString();
            req.CreatedOn = DateTime.UtcNow.Date.AddDays(_random.Next(100, 1000) * -1);
            req.Status    = _random.Next() % 2 == 0 ? Status.Deprecated : Status.InUse;
            return(req);
        }