public void Synchronize_WhenPost_ThenNoExceptions_Test()
        {
            UsingSynchronizationService(service =>
            {
                //Assign
                var syncRequest = new SynchronizationRequest()
                {
                    UserId = "12",
                    Types = new[] {typeof (User)},
                    Restricted = true,
                    RequestType = SynchronizationType.Post,
                    Entities = new List<IEntity>()
                };

                //Act
                Assert.DoesNotThrow(() => service.Synchronize(syncRequest));
            });
        }
        public void Synchronize_WhenGetRestricted_ThenReturnByEntity_Test()
        {
            UsingSynchronizationService(service =>
            {
                //Assign
                var syncRequest = new SynchronizationRequest()
                {
                    UserId = "12",
                    Types = new[] {typeof (User)},
                    Restricted = true,
                    RequestType = SynchronizationType.Get,
                    Entities = new List<IEntity>()
                };

                //Act
                var res = service.Synchronize(syncRequest);

                //Assert
                Assert.AreEqual(1, res.Count);
            });
        }
        public void Synchronize_WhenGetNotRestricted_ThenReturnByType_Test()
        {
            UsingSynchronizationService(service =>
            {
                //Assign
                var syncRequest = new SynchronizationRequest()
                {
                    UserId = "12",
                    Types = new[] {typeof (User)},
                    Restricted = false,
                    RequestType = SynchronizationType.Get,
                    Entities = new List<IEntity>()
                };

                //Act
                var res = service.Synchronize(syncRequest);

                //Assert
                Assert.IsEmpty(res);
            });
        }