Example #1
0
        public void Start_returnsActionStatusOkIfValveTypeExists(string valveTypeTxt, ActionStatus expectedActionStatus)
        {
            //Arrange
            valveManager.Initialize(4);
            //Act
            ActionStatus returnActionStatus = valveManager.Start(testSettings, valveTypeTxt);

            //Assert
            Assert.AreEqual(expectedActionStatus, returnActionStatus);
        }
Example #2
0
        public void Start_ValveTypeIsNull_ReturnsActionStatusError()
        {
            ActionStatus actionStatus = valveManager.Start(ServiceProvider.GetRequiredService <TestSettings>(), null);

            Assert.AreEqual(ActionStatus.Error, actionStatus);
        }