public void SetUp()
        {
            SystemTime.Now = () => new DateTime(2000, 1, 1);

            this.consoleMock         = Substitute.For <IConsole>();
            this.repositoryMock      = Substitute.For <IRepository <IUser> >();
            this.userWallMock        = Substitute.For <IWall>();
            this.parserMock          = Substitute.For <IInputParser>();
            this.brokerMock          = Substitute.For <IMessageBroker>();
            this.formaterFactoryMock = Substitute.For <IMessageFormaterFactory>();

            this.bob = new User("Bob", this.userWallMock);
        }
        public void SetUp()
        {
            SystemTime.Now = () => new DateTime(2000, 1, 1);

            this.consoleMock = Substitute.For<IConsole>();
            this.repositoryMock = Substitute.For<IRepository<IUser>>();
            this.userWallMock = Substitute.For<IWall>();
            this.parserMock = Substitute.For<IInputParser>();
            this.brokerMock = Substitute.For<IMessageBroker>();
            this.formaterFactoryMock = Substitute.For<IMessageFormaterFactory>();

            this.bob = new User("Bob", this.userWallMock);
        }
Esempio n. 3
0
 public Program(IConsole consoleWrapper, IInputParser parser, IMessageFormaterFactory formaterFactory)
 {
     this.formaterFactory = formaterFactory;
     this.parser = parser;
     this.consoleWrapper = consoleWrapper;
 }
Esempio n. 4
0
 public Program(IConsole consoleWrapper, IInputParser parser, IMessageFormaterFactory formaterFactory)
 {
     this.formaterFactory = formaterFactory;
     this.parser          = parser;
     this.consoleWrapper  = consoleWrapper;
 }