Ejemplo n.º 1
0
        public async Task <Guid> Create(Employee item)
        {
            var employee = EmployeeAggregate.Create(item.UserId, item.IsDeleted);
            await _employeeAggregateRepo.Add(employee);

            return(employee.Id);
        }
Ejemplo n.º 2
0
        public void CreateTest()
        {
            var builder  = new EmployeeAggregateBuilder();
            var employee = EmployeeAggregate.Create(
                builder.userId,
                builder.isDelete);

            employee.Should().As <EmployeeAggregate>();
        }
Ejemplo n.º 3
0
        public EmployeeAggregate GetRandomEmployeeAggregate()
        {
            var employeeAggregate = EmployeeAggregate.Create(userId, isDelete);

            return(employeeAggregate);
        }