Exemple #1
0
        public void Given_Valid_Arguments_When_I_Call_RemoveSurveyDays_Then_The_Correct_Service_Method_Is_Called()
        {
            //arrange
            var surveyDays = new List <DateTime>
            {
                DateTime.Today,
                DateTime.Today.AddDays(1)
            };

            //act
            _sut.RemoveSurveyDays(_instrumentName, _serverParkName, surveyDays);

            //assert
            _catiServiceMock.Verify(v => v.RemoveSurveyDays(_connectionModel, _instrumentName, _serverParkName, surveyDays), Times.Once);
        }
        public void RemoveSurveyDays(string instrumentName, string serverParkName, List <DateTime> surveyDays)
        {
            instrumentName.ThrowExceptionIfNullOrEmpty("instrumentName");
            serverParkName.ThrowExceptionIfNullOrEmpty("serverParkName");
            surveyDays.ThrowExceptionIfNullOrEmpty("surveyDays");

            _blaiseCatiApi.RemoveSurveyDays(instrumentName, serverParkName, surveyDays);
        }