Example #1
0
        public async Task CreateEmployerAsync_EmployerIsNotPreviouslySeeded_CreatesNewEmployer()
        {
            var capco = new Employer
            {
                Name         = "Capco",
                Address      = "Bratislava, Slovakia",
                Email        = "*****@*****.**",
                PhoneNumber  = "+421 123 456 789",
                PasswordHash = "password",
                PasswordSalt = "password"
            };

            using (var unitOfWork = Initializer.Provider.Create())
            {
                employerRepository.Create(capco);
                await unitOfWork.Commit();
            }

            Assert.IsFalse(capco.Id.Equals(0));
        }
Example #2
0
 public void CreateItem(Employer employer)
 {
     _employerRepository.Create(employer);
 }