Exemplo n.º 1
0
        public void EmployeeHourlySalary_Case_Create()
        {
            var requestEmployee =
                new RequestEmployee("Martin", "Fowler", 3, 1_000m);

            _employeeHourlySalary.Create(requestEmployee);
            var employee = _employeeContext.Employees.FirstOrDefault();

            Assert.AreEqual(new Money(1_440_000M, Currency.USD), employee.AnnualSalary);
            Assert.AreEqual(TypeContract.HourlySalary, employee.TypeContract);
        }