public void SyncAgentTaskRepositoryShouldSaveAndReturnOneTask()
        {
            _repository.Save(new SyncAgentTask());
            var tasks = _repository.GetAll();

            CustomAssert.EnsureCountIsEqual(tasks.ToList(), 1);
        }
        public void SyncAgentTaskRepositoryShouldReturnPlannedTaskWithErrorState()
        {
            var expectedState = SyncAgentTaskState.Error;

            _repository.Save(new SyncAgentTask()
            {
                State = expectedState
            });
            var tasks = _repository.GetPlanned();

            CustomAssert.EnsureCountIsEqual(tasks.ToList(), 1);
            Assert.IsTrue(tasks.Single().State == expectedState, $"Expected task with state - {expectedState}, but {tasks.Single().State} detected");
        }