public void Create_validResponse_test() { var now = DateTime.Now; var html = "<p>test</p>"; var response = bannerController.Post(new Web.Models.Banners.NewBannerModel() { Id = 0, Html = html }); Assert.Equal(0, response.Id); Assert.Equal(html, response.Html); Assert.True(response.Created.Value.Ticks - now.Ticks >= -tenMilisecondsTicks); Assert.Null(response.Modified); }