public CodeSales() { InitializeComponent(); if (_service == null) { _service = DataFactory.getCodeService(modelState, Information.PersistanceStrategy); } InitData(); }
public ComicsViewModel(IArtistsService artistsService, IBooksService booksService, ICharactersService charactersService, ICodesService codesService, IPublishersService publishersService, ISeriesService seriesService, IStoriesService storiesService, IExportBooksService exportBooksService, IMapper mapper, NavigationService navigationService, IConfiguration configuration) : base(mapper) { _navigationService = navigationService; _configuration = configuration; ArtistView = new ArtistViewModel(artistsService, mapper); BookView = new BookViewModel(booksService, mapper); CharacterView = new CharacterViewModel(charactersService, mapper); CodeView = new CodeViewModel(codesService, mapper); PublisherView = new PublisherViewModel(publishersService, mapper); SeriesView = new SeriesViewModel(seriesService, mapper); StoryView = new StoryViewModel(storiesService, mapper); ReportView = new ReportViewModel(exportBooksService, mapper); Languages = LanguageType.FillLanguages(); Actives = FillEnum <Active>(); FirstPrints = FillEnum <FirstPrint>(); BookTypes = FillEnum <BookType>(); StoryTypes = FillEnum <StoryType>(); ShowArtistFromStoryWindowCommand = new RelayCommand <int?>(new Action <int?>(ShowArtistFromStoryWindow)); ShowBookFromPublisherWindowCommand = new RelayCommand <int?>(new Action <int?>(ShowBookFromPublisherWindow)); ShowBookFromSeriesWindowCommand = new RelayCommand <int?>(new Action <int?>(ShowBookFromSeriesWindow)); ShowBookFromStoryWindowCommand = new RelayCommand <int?>(new Action <int?>(ShowBookFromStoryWindow)); ShowCharacterFromStoryWindowCommand = new RelayCommand <int?>(new Action <int?>(ShowCharacterFromStoryWindow)); ShowCodeFromSeriesWindowCommand = new RelayCommand <int?>(new Action <int?>(ShowCodeFromSeriesWindow)); ShowCodeFromStoryWindowCommand = new RelayCommand <int?>(new Action <int?>(ShowCodeFromStoryWindow)); ShowPublisherFromBookWindowCommand = new RelayCommand <int?>(new Action <int?>(ShowPublisherFromBookWindow)); ShowSeriesFromBookWindowCommand = new RelayCommand <int?>(new Action <int?>(ShowSeriesFromBookWindow)); ShowSeriesFromCodeWindowCommand = new RelayCommand <int?>(new Action <int?>(ShowSeriesFromCodeWindow)); ShowStoryFromArtistWindowCommand = new RelayCommand <int?>(new Action <int?>(ShowStoryFromArtistWindow)); ShowStoryFromBookWindowCommand = new RelayCommand <int?>(new Action <int?>(ShowStoryFromBookWindow)); ShowStoryFromCharacterWindowCommand = new RelayCommand <int?>(new Action <int?>(ShowStoryFromCharacterWindow)); ShowStoryFromCodeWindowCommand = new RelayCommand <int?>(new Action <int?>(ShowStoryFromCodeWindow)); ShowArtistWindowCommand = new RelayCommand(new Action(ShowArtistWindow)); ShowBookWindowCommand = new RelayCommand(new Action(ShowBookWindow)); ShowCharacterWindowCommand = new RelayCommand(new Action(ShowCharacterWindow)); ShowCodeWindowCommand = new RelayCommand(new Action(ShowCodeWindow)); ShowPublisherWindowCommand = new RelayCommand(new Action(ShowPublisherWindow)); ShowSeriesWindowCommand = new RelayCommand(new Action(ShowSeriesWindow)); ShowStoryWindowCommand = new RelayCommand(new Action(ShowStoriesWindow)); ShowReportWindowCommand = new RelayCommand(new Action(ShowReportWindow)); }
public OAuthService( IProfilesService profilesService, IIdentitiesService identitiesService, IClaimsService claimsService, ICodesService codesService, IAccessTokensService accessTokensService, IRefreshTokensService refreshTokensService, ICallbackUriService callbackUriService, IUserInfoService userInfoService) { _profilesService = profilesService; _identitiesService = identitiesService; _claimsService = claimsService; _codesService = codesService; _accessTokensService = accessTokensService; _refreshTokensService = refreshTokensService; _callbackUriService = callbackUriService; _userInfoService = userInfoService; }
private static void Main(string[] args) { var container = Initializer.Initialize(); _codesService = container.Resolve <ICodesService>(); var numberOsCases = GetNumberOfCases(); var inputs = new string[numberOsCases]; for (var i = 0; i < numberOsCases; i++) { inputs[i] = GetInputString(); } for (var i = 0; i < numberOsCases; i++) { var result = ProcessString(inputs[i], i + 1); Console.WriteLine(result); } Console.ReadLine(); }
public CodesController(ICodesService codesService) { _codesService = codesService; }
private void InitData() { modelState = new ModelStateDictionary(); _service = DataFactory.getCodeService(modelState, Information.PersistanceStrategy); }
public CodesController(ICodesService service) { _service = service; }
public void TestInitialize() { _codesService = _container.Resolve <ICodesService>(); }