예제 #1
0
 public GameInstanceLogic(ModelContext modelContext, IUserLogic userLogic, IRequestContext requestContext, IGameStrategyProvider gameStrategyProvider)
 {
     ModelContext         = modelContext;
     UserLogic            = userLogic;
     RequestContext       = requestContext;
     GameStrategyProvider = gameStrategyProvider;
 }
        private void Arrange()
        {
            var serviceProvider = A.Fake <IServiceProvider>();

            A.CallTo(() => serviceProvider.GetService(typeof(IMancalaGameLogic))).Returns(A.Fake <IMancalaGameLogic>());
            _gameStrategyProvider = new GameStrategyProvider(serviceProvider);
        }