public void Add_And_Presist_Changes_Should_Succeed()
 {
     using (BeginTransaction())
     {
         var knownSrc = (KnownSource)_domainFactory.CreateKnownSource("http://codebetter.com");
         _knownSourceRepository.Add(knownSrc);
         Assert.Equal(EntityState.Added, knownSrc.EntityState);
         _database.SubmitChanges();
         Assert.Equal(EntityState.Unchanged, knownSrc.EntityState);
     }
 }
        public void Add_Should_Use_Database()
        {
            database.Expect(d => d.Insert(It.IsAny <KnownSource>())).Verifiable();

            _knownSourceRepository.Add(_factory.CreateKnownSource("http://weblog.asp.net"));
        }