コード例 #1
0
        public override void Given()
        {
            messageSender = Moq.Mock<IMessageSender>();

            var messageMap = Moq.Mock<IMessageMap_v2>();
            messageMap.SetupGet(x => x.MessageType).Returns(typeof(ChangeOrderAttributes));

            viewModel = new MessageMapViewModel(messageSender, messageMap);
        }
コード例 #2
0
        public override void Given()
        {
            messageSender = Moq.Mock <IMessageSender>();

            var messageMap = Moq.Mock <IMessageMap_v2>();

            messageMap.SetupGet(x => x.MessageType).Returns(typeof(ChangeOrderAttributes));

            viewModel = new MessageMapViewModel(messageSender, messageMap);
        }