Ejemplo n.º 1
0
        public void ExecuteTest()
        {
            StateFacade f = new StateFacade(repository.Object);

            Assert.AreEqual(true, f.StateExists("GA"));
            Assert.AreEqual(true, f.StateExists("ga"));
        }
Ejemplo n.º 2
0
 private static void GetState()
 {
     using (var scope = Container.BeginLifetimeScope())
     {
         var stateFacade = new StateFacade(scope.Resolve <IStateRepository>());
         stateFacade.StateExists("GA");
     }
 }
Ejemplo n.º 3
0
        private static void GetStateWithoutAutofac()
        {
            var stateFacade = new StateFacade(new StateInMemoryRepository(new LocalStateData()));

            stateFacade.StateExists("GA");
        }