Пример #1
0
        public DiceRollerControllerTests()
        {
            _fixture = new Fixture();
            _fixture.Customize(new AutoMoqCustomization());

            _manager = _fixture.Freeze <Mock <IDiceRollManager> >();
            _sut     = new DiceRollerController(_manager.Object);
        }
 public void Setup()
 {
     roller = new Mock <IRoller>();
     sut    = new DiceRollerController(roller.Object);
 }
Пример #3
0
 public void SetController(DiceRollerController controller)
 {
     _controller = controller;
 }