public void ExecuteTest() { StateFacade f = new StateFacade(repository.Object); Assert.AreEqual(true, f.StateExists("GA")); Assert.AreEqual(true, f.StateExists("ga")); }
private static void GetState() { using (var scope = Container.BeginLifetimeScope()) { var stateFacade = new StateFacade(scope.Resolve <IStateRepository>()); stateFacade.StateExists("GA"); } }
private static void GetStateWithoutAutofac() { var stateFacade = new StateFacade(new StateInMemoryRepository(new LocalStateData())); stateFacade.StateExists("GA"); }