public UnitsControllerTests()
        {
            var mockingEntities = new MockingEntities <Unit,
                                                       UnitsController,
                                                       IUnitService>();

            mock               = mockingEntities.Mock;
            validController    = mockingEntities.ValidController;
            notValidController = mockingEntities.NotValidController;
            entity             = mockingEntities.singleEntity;
        }
        public CommunicationsControllerTests()
        {
            var mockingEntities = new MockingEntities <Communication,
                                                       CommunicationsController,
                                                       ICommunicationsService>();

            mock               = mockingEntities.Mock;
            validController    = mockingEntities.ValidController;
            notValidController = mockingEntities.NotValidController;
            entity             = mockingEntities.singleEntity;
        }
        public PositionsControllerTests()
        {
            var mockingEntities = new MockingEntities <Position,
                                                       PositionsController,
                                                       IPositionsService>();

            mock               = mockingEntities.Mock;
            validController    = mockingEntities.ValidController;
            notValidController = mockingEntities.NotValidController;
            entity             = mockingEntities.singleEntity;
        }
        public CurrenciesControllerTests()
        {
            var mockingEntities = new MockingEntities <Currency,
                                                       CurrenciesController,
                                                       ICurrenciesService>();

            mock               = mockingEntities.Mock;
            validController    = mockingEntities.ValidController;
            notValidController = mockingEntities.NotValidController;
            entity             = mockingEntities.singleEntity;
        }
        public DocumentTypesControllerTests()
        {
            var mockingEntities = new MockingEntities <DocumentType,
                                                       DocumentTypesController,
                                                       IDocumentTypesService>();

            mock               = mockingEntities.Mock;
            validController    = mockingEntities.ValidController;
            notValidController = mockingEntities.NotValidController;
            entity             = mockingEntities.singleEntity;
        }
Exemplo n.º 6
0
        public BusinessDirectionsControllerTests()
        {
            var mockingEntities = new MockingEntities <BusinessDirection,
                                                       BusinessDirectionsController,
                                                       IBusinessDirectionsService>();

            mock               = mockingEntities.Mock;
            validController    = mockingEntities.ValidController;
            notValidController = mockingEntities.NotValidController;
            entity             = mockingEntities.singleEntity;
        }
Exemplo n.º 7
0
        public EmployeesControllerTests()
        {
            var mockingEntities = new MockingEntities <Employee,
                                                       EmployeesController,
                                                       IEmployeesService>();

            mock               = mockingEntities.Mock;
            validController    = mockingEntities.ValidController;
            notValidController = mockingEntities.NotValidController;
            entity             = mockingEntities.singleEntity;
        }
Exemplo n.º 8
0
        public ItemsControllerTests()
        {
            var mockingEntities = new MockingEntities <Item,
                                                       ItemsController,
                                                       IItemsService>();

            mock               = mockingEntities.Mock;
            validController    = mockingEntities.ValidController;
            notValidController = mockingEntities.NotValidController;
            entity             = mockingEntities.singleEntity;
        }
        public WarehousesControllerTests()
        {
            var mockingEntities = new MockingEntities <Warehouse,
                                                       WarehousesController,
                                                       IWarehouseService>();

            mock               = mockingEntities.Mock;
            validController    = mockingEntities.ValidController;
            notValidController = mockingEntities.NotValidController;
            entity             = mockingEntities.singleEntity;
        }
        public StatesControllerTests()
        {
            var mockingEntities = new MockingEntities <State,
                                                       StatesController,
                                                       IStatesService>();

            mock               = mockingEntities.Mock;
            validController    = mockingEntities.ValidController;
            notValidController = mockingEntities.NotValidController;
            entity             = mockingEntities.singleEntity;
        }
        public DepartmentsControllerTests()
        {
            var mockingEntities = new MockingEntities <Department,
                                                       DepartmentsController,
                                                       IDepartmentsService>();

            mock               = mockingEntities.Mock;
            validController    = mockingEntities.ValidController;
            notValidController = mockingEntities.NotValidController;
            entity             = mockingEntities.singleEntity;
        }
Exemplo n.º 12
0
        public CompaniesControllerTests()
        {
            var mockingEntities = new MockingEntities <Company,
                                                       CompaniesController,
                                                       ICompaniesService>();

            mock    = mockingEntities.Mock;
            mockSet = mockingEntities.MockSet;
            mock.Setup(c => c.GetFiltredContent(null, null)).Returns(mockSet.Object);
            validController    = mockingEntities.ValidController;
            notValidController = mockingEntities.NotValidController;
            entity             = mockingEntities.singleEntity;
        }
        public PeopleControllerTests()
        {
            var mockingEntities = new MockingEntities <Person,
                                                       PeopleController,
                                                       IPeopleService>();

            mock               = mockingEntities.Mock;
            validController    = mockingEntities.ValidController;
            notValidController = mockingEntities.NotValidController;
            entity             = mockingEntities.singleEntity;
            personViewModel    = new PersonViewModel {
                Person = entity
            };
        }