public void CreateSchemaTest()
 {
     var provider = new DatabaseSessionProvider();
     provider.OpenSession();
     using (var session = provider.GetCurrentSession())
     {
     }
 }
        public void EventIsStoredSuccessfully()
        {
            var provider = new DatabaseSessionProvider();
            var repository = new EventRepository(provider);
            var eventInfo = new NewEmailConfirmedDeveloper(1);
            var @event = new Event(eventInfo);
            var receivers = new[] {30, 31, 32};
            var distributionPolicy = new DistributionPolicy(receivers);

            repository.DistrubuteEvent(@event, distributionPolicy);
            var receivedEvent = repository.GetEventsByUser(receivers[0], false).Single();

            Assert.AreEqual(@event.EventInfo, receivedEvent.EventInfo);
            Assert.AreEqual(@event.EventType, receivedEvent.EventType);
        }