Пример #1
0
        public void SaveToJsonTest()
        {
            IPersistenceBehavior <Post> saveToJson = new JSONDatabase <Post>();

            Post testPost = new Post(saveToJson);
            var  content  = new TextContent();

            content.PostText = "Hey this is my content";

            Assert.Contains("Hey this is my content", content.PostText);
        }
Пример #2
0
 public void Setup()
 {
     this.jsonDatabase = new JSONDatabase();
 }