예제 #1
0
        public UpdateInitializerTests()
        {
            _progressMock      = new Mock <IUpdatingProgress>();
            _dataProcessorMock = new Mock <IDataProcessor>();
            _dataServiceMock   = new Mock <IDataAccessService>();

            _progressMock.Setup(mock => mock.GetIsUpdatingStarted()).Returns(false);
            _dataServiceMock.Setup(mock => mock.GetVesselsToBeUpdated()).Returns(new List <VesselAisUpdateModel>());

            _service = new UpdateInitializer(_progressMock.Object, _dataServiceMock.Object, _dataProcessorMock.Object);
        }
예제 #2
0
        public static void Main(string[] args)
        {
            UpdateInitializer initializer = new UpdateInitializer();

            initializer.UpdateClient();
        }