private static Mock<IDbDependencyResolver> CreateMockResolver(IPilkington karl)
        {
            var mockResolver = new Mock<IDbDependencyResolver>();
            mockResolver.Setup(m => m.GetService(It.IsAny<Type>(), It.IsAny<string>())).Returns(karl);

            return mockResolver;
        }
コード例 #2
0
        private static Mock <IDbDependencyResolver> CreateMockResolver(IPilkington karl)
        {
            var mockResolver = new Mock <IDbDependencyResolver>();

            mockResolver.Setup(m => m.GetService(It.IsAny <Type>(), It.IsAny <string>())).Returns(karl);

            return(mockResolver);
        }