Example #1
0
        public void SetUp()
        {
            this.writeToStore = Substitute.For<IWriteToStore>();
            this.createStoreObject = Substitute.For<ICreateStoreObject<Gdto>>();

            SystemTime.Set(TimeStamp);
        }
Example #2
0
        /// <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;
        }