protected OrderDemoTestBase(ITestOutputHelper testOutputHelper) : base(testOutputHelper, TENANT_CODE, USERNAME, CULTURE_NAME) { var cultureInfo = new CultureInfo(CULTURE_NAME); UserSessionInfo = new UserSessionInfo { TenantInfo = new TenantInfo { TenantCode = TENANT_CODE }, Username = USERNAME }; GlobalizationInfo = new GlobalizationInfo( LOCALIZATION, UILANGUAGE, cultureInfo, cultureInfo ); DefaultSystemUser = ServiceProvider.GetService <ISystemUserFactory>().Create( ( tenantInfo: UserSessionInfo.TenantInfo.TenantCode, creationUser: UserSessionInfo.Username ) ); DefaultTestTenant = new TenantInfoValueObject(TENANT_CODE); }
protected PatternsTestBase( ITestOutputHelper testOutputHelper ) : base(testOutputHelper, testTenantCode: TENANT_CODE, testExecutionUsername: USERNAME, testCultureName: CULTURE_NAME) { UserSessionInfo = new UserSessionInfo.UserSessionInfo { Username = USERNAME, TenantInfo = new TenantInfo.TenantInfo { TenantCode = TENANT_CODE } }; var cultureInfo = new System.Globalization.CultureInfo(CULTURE_NAME); GlobalizationInfo = new GlobalizationInfo( LocalizationsEnum.UnitedStates, LanguageEnum.English, cultureInfo, cultureInfo ); }
public IsAsyncCommand( IUserSessionInfo userSessionInfo, IGlobalizationInfo globalizationInfo, ValidationResult validationResult ) : base(userSessionInfo, globalizationInfo, validationResult) { }
protected QueryBase( IUserSessionInfo userSessionInfo, IGlobalizationInfo globalizationInfo, ValidationResult validationResult ) : base(userSessionInfo, globalizationInfo, validationResult) { }
public OrderEvent( IUserSessionInfo userSessionInfo, IGlobalizationInfo globalizationInfo, ValidationResult validationResult ) : base(userSessionInfo, globalizationInfo, validationResult) { }
public CustomerImportedSuccessEvent( IUserSessionInfo userSessionInfo, IGlobalizationInfo globalizationInfo, ValidationResult validationResult ) : base(userSessionInfo, globalizationInfo, validationResult) { }
public SignUpCompletedEvent( IUserSessionInfo userSessionInfo, IGlobalizationInfo globalizationInfo, ValidationResult validationResult ) : base(userSessionInfo, globalizationInfo, validationResult) { }
public StopOnErrorTrueEvent( IUserSessionInfo userSessionInfo, IGlobalizationInfo globalizationInfo, ValidationResult validationResult ) : base(userSessionInfo, globalizationInfo, validationResult) { }
public StopOnErrorFalseQuery( IUserSessionInfo userSessionInfo, IGlobalizationInfo globalizationInfo, ValidationResult validationResult ) : base(userSessionInfo, globalizationInfo, validationResult) { }
public GetCustomerQuery( IUserSessionInfo userSessionInfo, IGlobalizationInfo globalizationInfo, ValidationResult validationResult ) : base(userSessionInfo, globalizationInfo, validationResult) { }
public RaisedExceptionEvent( IUserSessionInfo userSessionInfo, IGlobalizationInfo globalizationInfo, Exception exception ) : base(userSessionInfo, globalizationInfo, null) { Exception = exception; }
protected GenericCommand( IUserSessionInfo userSessionInfo, IGlobalizationInfo globalizationInfo, ValidationResult validationResult ) : base(userSessionInfo, globalizationInfo, validationResult) { Header.SetType <T>(); }
public CustomerImportFailedEvent( IUserSessionInfo userSessionInfo, IGlobalizationInfo globalizationInfo, ValidationResult validationResult, Customer customer ) : base(userSessionInfo, globalizationInfo, validationResult) { Customer = customer; }
public GetSystemUserByUsernameQuery( IUserSessionInfo userSessionInfo, IGlobalizationInfo globalizationInfo, ValidationResult validationResult, string username ) : base(userSessionInfo, globalizationInfo, validationResult) { Username = username; }
public CustomerMustHaveUniqueCodeSpecification( IInMemoryBus inMemoryBus, IUserSessionInfo userSessionInfo, IGlobalizationInfo globalizarionInfo) { _inMemoryBus = inMemoryBus; _userSessionInfo = userSessionInfo; _globalizarionInfo = globalizarionInfo; }
public OrderImportFailedEvent( IUserSessionInfo userSessionInfo, IGlobalizationInfo globalizationInfo, ValidationResult validationResult, Order order ) : base(userSessionInfo, globalizationInfo, validationResult) { Order = order; }
public GetCustomerByCodeQuery( IUserSessionInfo userSessionInfo, IGlobalizationInfo globalizationInfo, ValidationResult validationResult, string code ) : base(userSessionInfo, globalizationInfo, validationResult) { Code = code; }
public ProductImportFailedEvent( IUserSessionInfo userSessionInfo, IGlobalizationInfo globalizationInfo, ValidationResult validationResult, Product product ) : base(userSessionInfo, globalizationInfo, validationResult) { Product = product; }
public ImportOrderProcessEndSuccessfulEvent( IUserSessionInfo userSessionInfo, IGlobalizationInfo globalizationInfo, ValidationResult validationResult, Order importedOrder ) : base(userSessionInfo, globalizationInfo, validationResult) { ImportedOrder = importedOrder; }
public ProductWasImportedEvent( IUserSessionInfo userSessionInfo, IGlobalizationInfo globalizationInfo, ValidationResult validationResult, Product importedProduct ) : base(userSessionInfo, globalizationInfo, validationResult) { ImportedProduct = importedProduct; }
public OrderWasImportedEvent( IUserSessionInfo userSessionInfo, IGlobalizationInfo globalizationInfo, ValidationResult validationResult, Order importedOrder ) : base(userSessionInfo, globalizationInfo, validationResult) { ImportedOrder = importedOrder; }
public ImportOrderCommand( IUserSessionInfo userSessionInfo, IGlobalizationInfo globalizationInfo, ValidationResult validationResult, Order order ) : base(userSessionInfo, globalizationInfo, validationResult) { Order = order; }
public HandlerBaseParameters( IInMemoryBus inMemoryBus, IUserSessionInfo userSessionInfo, IGlobalizationInfo globalizationInfo, DomainNotificationEventHandler domainNotificationEventHandler) { InMemoryBus = inMemoryBus; UserSessionInfo = userSessionInfo; GlobalizationInfo = globalizationInfo; DomainNotificationEventHandler = domainNotificationEventHandler; }
public DomainServiceParameters( IUserSessionInfo userSessionInfo, IGlobalizationInfo globalizationInfo, IInMemoryBus inMemoryBus, DomainNotificationEventHandler domainNotificationEventHandler) { UserSessionInfo = userSessionInfo; GlobalizationInfo = globalizationInfo; InMemoryBus = inMemoryBus; DomainNotificationEventHandler = domainNotificationEventHandler; }
public DomainNotificationEventHandler( IInMemoryBus inMemoryBus, IUserSessionInfo userSessionInfo, IGlobalizationInfo globalizationInfo ) { InMemoryBus = inMemoryBus; UserSessionInfo = userSessionInfo; GlobalizationInfo = globalizationInfo; DomainNotificationEventCollection = new List <DomainNotificationEvent>(); }
public MessageHeader( Guid id, DateTime date, byte[] version, IUserSessionInfo userSessionInfo, IGlobalizationInfo globalizationInfo) { Id = id; Date = date; Version = version; UserSessionInfo = userSessionInfo; GlobalizationInfo = globalizationInfo; }
public DomainNotificationEvent( IUserSessionInfo userSessionInfo, IGlobalizationInfo globalizationInfo, DomainNotificationEventTypeEnum domainNotificationEventType, string sender, string code, string message ) : base(userSessionInfo, globalizationInfo, null) { DomainNotificationEventType = domainNotificationEventType; Sender = sender; Code = code; Message = message; }
protected MessageBase( IUserSessionInfo userSessionInfo, IGlobalizationInfo globalizationInfo, ValidationResult validationResult ) { Header = new MessageHeader( id: Guid.NewGuid(), date: DateTime.UtcNow, version: BitConverter.GetBytes(DateTime.UtcNow.Ticks), userSessionInfo, globalizationInfo ); ValidationResult = validationResult ?? new ValidationResult(); }