Beispiel #1
0
        public void ManagerFactory_CreateSurveyManager_SurveyManagerCreated()
        {
            var client = Substitute.For <IMongoClient>();

            _factory = new ManagerFactory(client, "linkDbName", "surveyDbName", "userDbName", "sessionDbName");

            var manager = _factory.CreateSurveyManager();

            Assert.NotNull(manager);
            Assert.IsAssignableFrom <ISurveyManager>(manager);
            Assert.IsType <SurveyManager>(manager);
        }