Ejemplo n.º 1
0
        public void EnsureGetByTypes_uses_api_executor()
        {
            var types = new CompanyCertTypeList();

            _securityApi.GetByTypes(types, 0, 10);
            _apiExecutorMock.Verify(obj => obj.Execute(It.IsAny <Func <CompanyCertTypeList, string, int?, int?, CompanyCertInfoList> >(), types, "sessionToken", 0, 10));
        }
Ejemplo n.º 2
0
        public void EnsureGetByTypes_uses_api_executor()
        {
            var types = new List <CompanyCertType>() as IEnumerable <CompanyCertType>;

            _securityApi.GetByTypes(types, 0, 10);
            _apiExecutorMock.Verify(obj => obj.Execute(It.IsAny <Func <IEnumerable <CompanyCertType>, string, int?, int?, CancellationToken, Task <System.Collections.ObjectModel.ObservableCollection <Anonymous> > > >(), types, "sessionToken", 0, 10, default(CancellationToken)));
        }