コード例 #1
0
 public MmTestEnvironment(MmIntegrationalTestSuit suit) : base(suit)
 {
     Setup <ISettingsStorageService>(
         m => m.Setup(s => s.Read()).Returns(() => SettingsRoot),
         m => m.Setup(s => s.Write(It.IsNotNull <SettingsRoot>()))
         .Callback <SettingsRoot>(r => SettingsRoot = r))
     .Setup <IRabbitMqService>(StubRabbitMqService)
     .Setup <ISystem>(m => m.Setup(s => s.UtcNow).Returns(() => UtcNow))
     .Setup <IAssetsService>(m => m.Setup(s => s.GetAssetPairsWithHttpMessagesAsync(default, default))