public void SetUp() { this.writeToStore = Substitute.For<IWriteToStore>(); this.createStoreObject = Substitute.For<ICreateStoreObject<Gdto>>(); SystemTime.Set(TimeStamp); }
/// <summary> /// Initializes a new instance of the <see cref="CommandService"/> class. /// </summary> public CommandService(ICreateStoreObject<Gdto> createStoreObject, IWriteToStore writeToStore) { if (createStoreObject == null) { throw new ArgumentNullException("createStoreObject"); } if (writeToStore == null) { throw new ArgumentNullException("writeToStore"); } this.createStoreObject = createStoreObject; this.writeToStore = writeToStore; }