Esempio n. 1
0
 public void Setup()
 {
     pb = new PostBuilder();
     //generator = new RandomGenerator();
     _pr = Mock.Create <IRepository <Post> >();
     ps  = new PostService(_pr);
 }
 public void Setup()
 {
     r = new PostRepository();
     pb = new PostBuilder();
     MongoSetup();
     collection = database.GetCollection<Post>("posts");
     collection.Drop();
 }
 public void Setup()
 {
     r  = new PostRepository();
     pb = new PostBuilder();
     MongoSetup();
     collection = database.GetCollection <Post>("posts");
     collection.Drop();
 }
        public void Setup()
        {
            pb = new PostBuilder();
            //generator = new RandomGenerator();
            _pr = Mock.Create<IRepository<Post>>();
            ps = new PostService(_pr);


        }