private TestingObject <ReportService> GetTestingObject()
        {
            var testingObject = new TestingObject <ReportService>();

            testingObject.AddDependency(new Mock <IUserService>(MockBehavior.Strict));
            testingObject.AddDependency(new Mock <IDatabaseContext>(MockBehavior.Strict));
            return(testingObject);
        }
        private TestingObject <ProductRepository> GetTestingObject()
        {
            var testingObject = new TestingObject <ProductRepository>();

            testingObject.AddDependency(new Mock <IDataContext <Product> >(MockBehavior.Loose));
            testingObject.AddDependency(new Mock <IProductCommand <Product, bool> >(MockBehavior.Loose));
            return(testingObject);
        }
Exemple #3
0
        private TestingObject <ProductService> GetTestingObject()
        {
            var testingObject = new TestingObject <ProductService>();

            testingObject.AddDependency(new Mock <IProductRepository>(MockBehavior.Loose));
            return(testingObject);
        }
        private TestingObject <R> GetTestingObject <R, D>() where R : class
        {
            var testingObject = new TestingObject <R>();

            testingObject.AddDependency(new Mock <IDataContext <D> >(MockBehavior.Strict));
            return(testingObject);
        }