public void TestPayCoinShouldSuccess()
        {
            _ctx.Init(String.Empty);
            var result = _controller.PayCoin(1).Result;

            Assert.AreEqual(String.Empty, result.GetType().GetProperty("error").GetValue(result));
            Assert.AreEqual(9, _ctx.UserPurse.Item.Coins[0].Count);
            Assert.AreEqual(101, _ctx.CoffeMachinePurse.Item.Coins[0].Count);
            Assert.AreEqual(1, _ctx.PurchaseInfo.Item.PayedSum);
        }
 public void InitializeTests()
 {
     _ctx = new DataContextMock();
     _ctx.Init(String.Empty);
     _controller = new CoffeMachineControllerForTests(_ctx);
 }
 public void InitializeTests()
 {
     _ctx = new DataContextMock();
     _ctx.Init(String.Empty);
     _controller = new CoffeMachineControllerForTests(_ctx);
 }