public static User ToModel(this UserDto source, bool ignoreNavigation)
        {
            if (source == null)
                return null;

            var user = new User() {
                // In alphabetical order without navigation properties
                Created = source.Created,
                Email = source.Email,
                Id = source.Id,
                IsDisabled = source.IsDisabled,
                Name = source.Name,
                Type = source.Type
            };

            if (source.Links != null && !ignoreNavigation)
                user.Links = source.Links.Select(l => l.ToModel(ignoreNavigation: true)).ToArray();

            return user;
        }
 public CrudAsyncTests(DatabaseFixture dbFixture)
 {
     this._dbFixture = dbFixture;
     this._unitOfWorkFactory = dbFixture.UnitOfWorkFactory;
     this._sampleData = dbFixture.SampleData;
 }