Пример #1
0
        public void DemonstrateJustMockJustCodeIntegration()
        {
            IMyInterface myInterfaceMock = Mock.Create <IMyInterface>();

            myInterfaceMock.Arrange(x => x.Everywhere(Arg.AnyString, Arg.AnyInt, Arg.AnyInt)).Returns(0M);
            myInterfaceMock.Arrange(x => x.Here(Arg.AnyString, Arg.AnyGuid)).Returns(false);
            myInterfaceMock.Arrange(x => x.There(Arg.AnyString, Arg.IsAny <System.DateTime>())).Returns("");
        }