예제 #1
0
        public void TestAddWithStatusAdded()
        {
            HomeQuery query        = new HomeQuery();
            Product   dummyProduct = new Product();

            query.Add(dummyProduct);

            dummyProduct.Status.Should().Be("Added");
        }
예제 #2
0
        public void TestPrepareUpdate()
        {
            HomeQuery query        = new HomeQuery();
            Product   dummyProduct = new Product();
            var       res          = query.PrepareUpdate(dummyProduct);

            res.Should().BeTrue();
            dummyProduct.Date.Should().BeAfter(DateTime.MinValue);
        }
예제 #3
0
        public void TestGet()
        {
            HomeQuery query        = new HomeQuery();
            Product   dummyProduct = new Product();

            query.Add(dummyProduct);

            var res = query.Get();

            res.Should().NotBeNullOrEmpty();
            res.Count.Should().Be(1);
        }