Exemplo n.º 1
0
        public static RoutesHistory Create()
        {
            var routeHistoric = new RoutesHistory()
            {
                Id     = Guid.NewGuid(),
                Routes = new List <Route>()
            };

            return(routeHistoric);
        }
Exemplo n.º 2
0
        public static Driver Create(string userId, string name, string email)
        {
            Driver driver = new Driver
            {
                Id             = Guid.NewGuid(),
                Email          = email,
                UserId         = userId,
                Name           = name,
                RoutesHistoric = RoutesHistory.Create()
            };

            return(driver);
        }