예제 #1
0
        public void GetPriceTest()
        {
            //arrange
            var service = new NsService();
            //act
            var result = service.GetPrice("ASB", "HGV", 1);

            //assert
            Assert.AreNotEqual(955, result.totalPriceInCents); //955 is used as a fake price. Assert it is not that price
        }
예제 #2
0
        public void BuyDemoTest()
        {
            //arrange
            var service = new NsService();
            //act
            var result = service.BuyDemo();

            //assert
            Assert.IsTrue(result);
        }