Esempio n. 1
0
        public void Get_singleRecord_test()
        {
            var now  = DateTime.Now;
            var html = "<div>test</div>";

            bannerService.CreateBanner(0, html);
            var response = bannerController.Get(0);

            Assert.Equal(0, response.Id);
            Assert.Equal(html, response.Html);
            Assert.True(response.Created.Value.Ticks - now.Ticks >= -tenMilisecondsTicks);
            Assert.Null(response.Modified);
        }