public void SetUp() { _mock = new Mock <ISearchAddressUseCase>(); var validator = new SearchAddressValidator(); _classUnderTest = new SearchAddressController(_mock.Object); _classUnderTest.ControllerContext = new ControllerContext(); _classUnderTest.ControllerContext.HttpContext = new DefaultHttpContext(); _classUnderTest.ControllerContext.HttpContext.Request.QueryString = new QueryString(""); }
public void SetUp() { _localGazetteer = GlobalConstants.Gazetteer.Local.ToString(); _classUnderTest = new SearchAddressValidator(); }
public void SetUp() { _localGazetteer = GlobalConstants.AddressScope.HackneyGazetteer.ToString(); _nationalGazetteer = GlobalConstants.AddressScope.National.ToString(); _classUnderTest = new SearchAddressValidator(); }