public void GetAllPersonsByEmployerAndDay_ReturnsAllPersonsByEmployerAndDayFromService()
        {
            // Arrange
            var person   = new PersonBuilder().WithId(1).Build();
            var employer = new EmployerBuilder().WithId(1).Build();

            var contracts = new List <Contract>
            {
                new ContractBuilder().WithId(1).WithPerson(person).WithEmployer(employer).Build(),
            };

            var personWorkshiftsViewModels = new List <PersonWorkshiftsViewModel>
            {
                new PersonWorkshiftsViewModelBuilder().WithId(1).WithName(person.FirstName + " " + person.LastName)
                .Build(),
            };

            _contractServiceMock.Setup(c => c.GetAllContractsByDay(It.IsAny <long>(), It.IsAny <DateTime>()))
            .ReturnsAsync(contracts);

            _mapperMock.Setup(m => m.Map <List <PersonWorkshiftsViewModel> >(contracts))
            .Returns(personWorkshiftsViewModels);

            // Act
            var okResult = _controller.GetAllPersonsByEmployerAndDay(1, DateTime.MinValue).Result as OkObjectResult;

            // Assert
            Assert.That(okResult, Is.Not.Null);
            Assert.That(okResult.Value, Is.EqualTo(personWorkshiftsViewModels));
            _mapperMock.Verify(m => m.Map <List <PersonWorkshiftsViewModel> >(contracts), Times.Once);
        }