public void Diplay_Commodity_bycode_False()
        {
            //Arrange
            var expected = 15;

            //Act
            BlobDbContext db     = new BlobDbContext();
            var           actual = db.Commodities.Find(14);

            //Assert
            Assert.NotEqual(expected, actual.ID);
        }
        public void CheckCommodityCount()
        {
            var       expected = 9;
            Commodity com      = new Commodity();

            //Act
            BlobDbContext db     = new BlobDbContext();
            var           actual = db.Commodities.CountAsync();

            //Assert
            Assert.NotEqual(expected, actual.Result);
        }
Beispiel #3
0
 public Commodity(BlobDbContext blobDbContext)
 {
     this.blobDbContext = blobDbContext;
 }