public DecisionControllerTests()
        {
            mediator = A.Fake<IMediator>();
            decisionController = new DecisionController(mediator);

            A.CallTo(() => mediator.SendAsync(A<GetImportNotificationAssessmentDecisionData>.Ignored))
                .Returns(new ImportNotificationAssessmentDecisionData
                {
                    AcknowledgedOnDate = acknowledgedOnDate
                });
        }
Ejemplo n.º 2
0
        public DecisionControllerTests()
        {
            mediator = A.Fake <IMediator>();

            A.CallTo(() => mediator.SendAsync(A <GetNotificationAssessmentDecisionData> .Ignored))
            .Returns(new NotificationAssessmentDecisionData
            {
                AcknowledgedOnDate = acknowledgedOnDate
            });

            decisionController = new DecisionController(mediator, new NotificationAssessmentDecisionDataMap());
        }
        void Start()
        {
            m_NavMeshAgent = GetComponent <NavMeshAgent>();
            m_Controller   = GetComponent <DecisionController>();

            m_DirtCount          = GameObject.FindGameObjectsWithTag("Dirt").Length;
            m_DirtCountText.text = $"Dirt count: {m_DirtCount}";

            m_BatteryMaterials = new Material[m_BatteryIndicators.Length];
            for (int i = 0; i < m_BatteryMaterials.Length; i++)
            {
                m_BatteryMaterials[i] = m_BatteryIndicators[i].GetComponent <MeshRenderer>().material;
            }
            UpdateVisuals(m_BatteryLevel);
        }