public IEnumerable<FacebookRequest> Insert(long from, IEnumerable<long> to, long facebookRequestId)
        {
            var requests = new List<FacebookRequest>();
            foreach (var invitedUser in to)
            {
                var facebookRequest = new FacebookRequest
                    {
                        Id = string.Format("{0}_{1}", facebookRequestId, invitedUser),
                        RequestedProfileId = invitedUser,
                        SentById = from,
                        DateSent = DateTime.UtcNow
                    };
                facebookRequestRepository.Insert(facebookRequest);
                requests.Add(facebookRequest);
            }

            facebookRequestRepository.Commit();
            return requests;
        }
        public void SuccessfulCreateAndInsertOfFacebookRequest()
        {
            IFacebookRequestRepository repository = GetRepositoryWithEnrolledUnitOfWork();
            var preparedTupple = PreparePoem<NoviceAuthorityType, ClassicalPoem>();
            var requestedProfile = CreateAndRegisterUserProfile<NoviceAuthorityType>();
            const string FacebookRequestId = "123456789";
            FacebookRequest facebookRequest = new FacebookRequest
            {
                Id = string.Format("{0}_{1}", FacebookRequestId, requestedProfile.Id),
                SentById = preparedTupple.Item1.Id,
                RequestedProfileId = requestedProfile.Id,
                DateSent = DateTime.UtcNow
            };

            RegisterDataStoreObject(facebookRequest);
            var actualFacebookRequest = repository.GetById(FacebookRequestId, requestedProfile.Id);

            Assert.AreEqual(facebookRequest.Id, actualFacebookRequest.Id);
            Assert.AreEqual(facebookRequest.SentById, actualFacebookRequest.SentById);
            Assert.AreEqual(facebookRequest.RequestedProfileId, actualFacebookRequest.RequestedProfileId);
            Assert.AreEqual(facebookRequest.DateSent, actualFacebookRequest.DateSent);
        }