public async Task <Guid> Create(Employee item) { var employee = EmployeeAggregate.Create(item.UserId, item.IsDeleted); await _employeeAggregateRepo.Add(employee); return(employee.Id); }
public void CreateTest() { var builder = new EmployeeAggregateBuilder(); var employee = EmployeeAggregate.Create( builder.userId, builder.isDelete); employee.Should().As <EmployeeAggregate>(); }
public EmployeeAggregate GetRandomEmployeeAggregate() { var employeeAggregate = EmployeeAggregate.Create(userId, isDelete); return(employeeAggregate); }