Beispiel #1
0
        public void Delete()
        {
            var widget = new Widget()
            {
                Description = "A widget",
                Expiration = DateTime.Now.AddYears(1),
                Name = "Widget",
                Price = 9.99m,
                Size = 2
            };

            var widgets = new MongoyList<Widget>(Host, Database, Collection);
            widgets.Add(widget);
            widgets.Remove(widget);

            Assert.Equal(0, _dbVerifier.Count());
        }
Beispiel #2
0
        public void Delete()
        {
            var widget = new Widget()
            {
                Description = "A widget",
                Expiration  = DateTime.Now.AddYears(1),
                Name        = "Widget",
                Price       = 9.99m,
                Size        = 2
            };

            var widgets = new MongoyList <Widget>(Host, Database, Collection);

            widgets.Add(widget);
            widgets.Remove(widget);

            Assert.Equal(0, _dbVerifier.Count());
        }