Dev2.Core.Tests.DeployStatsCalculatorTests.DeploySummaryPredicateNew_NullResourcesOnEnvironmentModel_Expected_False C# (CSharp) Method

DeploySummaryPredicateNew_NullResourcesOnEnvironmentModel_Expected_False() private method

        public void DeploySummaryPredicateNew_NullResourcesOnEnvironmentModel_Expected_False()
        {
            Dev2MockFactory.SetupResourceModelMock(Studio.Core.AppResources.Enums.ResourceType.WorkflowService);

            ExplorerItemModel navigationItemViewModel = new ExplorerItemModel();

            Mock<IEnvironmentModel> mockEnvironmentModel = Dev2MockFactory.SetupEnvironmentModel();
            mockEnvironmentModel.Setup(e => e.ResourceRepository).Returns<object>(null);

            IEnvironmentModel environmentModel = mockEnvironmentModel.Object;

            bool actual = DeployStatsCalculator.DeploySummaryPredicateNew(navigationItemViewModel, environmentModel);

            Assert.IsFalse(actual);
        }
DeployStatsCalculatorTests