public async Task ShouldCreateEmployee()
        {
            var status = Task <Unit> .FromResult(await sut.Handle(new CreateEmployeeCommand {
                FirstName = GConst.ValidName, LastName = GConst.ValidName, LocationId = locationId
            }, CancellationToken.None));

            Assert.Null(status.Exception);
            Assert.Equal(GConst.SuccessStatus, status.Status.ToString());
            Assert.Equal(GConst.ValidCount, context.Employees.Count());
        }
        public async Task <Guid> CreateEmployee(string name)
        {
            var command = new CreateEmployeeCommand
            {
                Id   = Guid.NewGuid(),
                Name = name
            };

            await _createEmployeeCommandHandler.Handle(command);

            return(command.Id);
        }
        public async Task HandleValidEmployeeAddedToEmployeeRepo()
        {
            var handler = new CreateEmployeeCommandHandler(_mapper, _mockEmployeeRepository.Object);

            var employee = new EmployeeRest
            {
                FirstName  = $"FirstName11",
                MiddleName = $"MiddleName11",
                LastName   = $"LastName11"
            };
            await handler.Handle(new CreateEmployeeCommand(employee), CancellationToken.None);

            var allCategories = await _mockEmployeeRepository.Object.GetAllAsync();

            allCategories.Count.ShouldBe(10);
        }