Exemplo n.º 1
0
 private UserProfile CreateProfile(UserBio bio)
 {
     return new UserProfile
                {
                    Id = Guid.NewGuid(),
                    Bio = bio
                };
 }
Exemplo n.º 2
0
        private Employee CreateEmployee(string firstName, string lastName, string email)
        {
            var bio = new UserBio { Id = Guid.NewGuid(), BioDescription = "Test" };
            var profile = new UserProfile { Id = Guid.NewGuid(), Bio = bio };
            var employee = new Employee
            {
                Id = Guid.NewGuid(),
                FirstName = firstName,
                LastName = lastName,
                Email = email,
                Profile = profile,
                Username = "******"
            };

            return employee;
        }