Inheritance: IAccountNumberService
コード例 #1
0
        public static void Build()
        {
            LogFactory.BuildLogger = type => new ConsoleWindowLogger(type);

            Repository = new InMemoryRepository();
            DataQuery = Repository as IDataQuery;
            UnitOfWork = new InMemoryUnitOfWork(Repository);
            ClientProjections = new ClientProjections(Repository);
            ClientRepository = new ClientRepository(Repository, DataQuery);
            ClientApplicationService = new ClientApplicationService(ClientRepository, ClientProjections, UnitOfWork);
            AccountProjections = new AccountProjections(Repository);
            AccountRepository = new AccountRepository(Repository);
            AccountNumberService = new AccountNumberService(DataQuery);
            AccountApplicationService = new AccountApplicationService(AccountRepository, AccountProjections, AccountNumberService, UnitOfWork);

            RegisterCommands();
            SubscribeToCommands();
            RegisterSpecifications();
        }
コード例 #2
0
        public static void Build()
        {
            LogFactory.BuildLogger = type => new ConsoleWindowLogger(type);

            Repository = new InMemoryRepository();
            DocumentStore = new InMemeoryDocumentStore();
            DataQuery = Repository as IDataQuery;
            UnitOfWork = new InMemoryUnitOfWork(Repository);

            AccountStatusHistoryProjection = new AccountStatusHistoryProjection(Repository);
            ClientViewProjections = new ClientViewProjections(Repository);

            ClientRepository = new ClientRepository(DocumentStore);
            ClientApplicationService = new ClientApplicationService(ClientRepository, UnitOfWork);
            AccountRepository = new AccountRepository(DocumentStore);
            AccountNumberService = new AccountNumberService(DataQuery);
            AccountApplicationService = new AccountApplicationService(AccountRepository, AccountNumberService, UnitOfWork);

            RegisterCommands();
            RegisterViews();
            SubscribeToCommands();
            RegisterCommandValidators();
            SubsribeToEvents();

            LookupTables.Register<AccountStatusLookup, AccountStatusType>(Repository);
        }