public void TestAddWithStatusAdded() { HomeQuery query = new HomeQuery(); Product dummyProduct = new Product(); query.Add(dummyProduct); dummyProduct.Status.Should().Be("Added"); }
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); }
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); }