Ejemplo n.º 1
0
            public WhenTheEmployeeListIsRequested()
            {
                EmployeeList = new EmployeeSeed().GetDetailedEmployeeList(10);

                EmployeeApi
                .Setup(e => e.GetAllEmployees())
                .ReturnsAsync(EmployeeList);
            }
Ejemplo n.º 2
0
            public WhenAnEmployeeCreationIsRequested()
            {
                Employee = new EmployeeSeed().GetSingleEmployee();

                EmployeeApi
                .Setup(e => e.CreateEmployee(It.Is <Employee>(i => i == Employee)))
                .Callback((Employee e) => ProcessedEmployee = e)
                ;
            }
Ejemplo n.º 3
0
            public WhenASingleEmployeeIsRequested()
            {
                Id       = Guid.NewGuid();
                Employee = new EmployeeSeed().GetDetailedEmployeeWithId(Id);

                EmployeeApi
                .Setup(e => e.GetEmployee(It.Is <Guid>(i => i == Id)))
                .ReturnsAsync(Employee);
            }