public async Task TravelAttachmentsController_Add_Test()
        {
            bool called = false;
            var  travelAttachmentsRepository = new Data.Repositories.Fakes.StubITravelAttachmentRepository();

            var newTravelAttachments = new TravelAttachment()
            {
                TravelRequestId = 1,
            };

            travelAttachmentsRepository.AddAsyncTravelAttachment = (travelAttachment) =>
            {
                Assert.IsTrue(newTravelAttachments.TravelRequestId == travelAttachment.TravelRequestId);
                called = true;

                return(Task.FromResult(10));
            };

            var target  = new TravelAttachmentsController(travelAttachmentsRepository);
            var idAdded = await target.Add(newTravelAttachments);

            Assert.IsTrue(called);
        }
 public async Task TravelAttachmentsController_Add_Exception_Test()
 {
     var travelAttachmentsRepository = new Data.Repositories.Fakes.StubITravelAttachmentRepository();
     var target = new TravelAttachmentsController(travelAttachmentsRepository);
     await target.Add(null);
 }