public void WhenGettingFillupAndErrorOccurs_ThenThrows()
        {
            _fillupRepositoryMock
                .Setup(f => f.GetFillup(DefaultFillupId))
                .Throws<InvalidOperationException>();

            var handler = new GetFillupById(_fillupRepositoryMock.Object);

            var ex = Assert.Throws<BusinessServicesException>(() => handler.Execute(DefaultFillupId));
            Assert.IsType<InvalidOperationException>(ex.InnerException);
        }
        public void WhenGettingFillup_ThenDelegatesToFillupRepository()
        {
            _fillupRepositoryMock
                .Setup(x => x.GetFillup(DefaultFillupId))
                .Verifiable();

            var handler = new GetFillupById(_fillupRepositoryMock.Object);
           handler.Execute(DefaultFillupId);

            _fillupRepositoryMock
                .Verify(r => r.GetFillup(DefaultFillupId), Times.Once());
        }