public async void Delta_DeltaRequestNotProvided_Throws_ArgumentNullException()
        {
            var crudService = new Mock <ICrudService <Guid, TestEntity> >().Object;
            var service     = new HistoricalCrudServiceBase <Guid, TestEntity>(crudService, null, null, null, null);

            await Assert.ThrowsAsync <ArgumentNullException>(() => service.Delta(_entity.Id, null));
        }
        public async void Delta_DeltaRequestProvided_DoNotCallsGetLastTimeViewed()
        {
            var lastTimeView     = DateTime.MinValue;
            var readeableService = new Mock <IHistoricalCrudReadService <Guid, TestEntity> >();

            readeableService.Setup(_ => _.GetLastTimeViewed <TestEntity>(It.IsAny <Guid>())).Returns(lastTimeView);
            var service = new HistoricalCrudServiceBase <Guid, TestEntity>(
                new Mock <ICrudService <Guid, TestEntity> >().Object,
                null,
                null,
                null,
                null);

            await Assert.ThrowsAsync <NullReferenceException>(() => service.Delta(_entity.Id, new DeltaRequest()
            {
                From = DateTime.Now
            }));

            readeableService.Verify(_ => _.GetLastTimeViewed <TestEntity>(_entity.Id), Times.Never);
        }