protected override void OnTearDown() { repository = null; webServiceClient = null; database = null; base.OnTearDown(); }
protected override void OnSetUp() { base.OnSetUp(); database = new SimpleAmplaDatabase(); database.EnableModule(module); configuration = new SimpleAmplaConfiguration(); configuration.EnableModule(module); configuration.AddLocation(module, location); configuration.SetDefaultView(module, ProductionViews.AreaValueModelView()); webServiceClient = new SimpleDataWebServiceClient(database, configuration, new SimpleSecurityWebServiceClient("User")); repository = new AmplaReadOnlyRepository <AreaValueModel>(new AmplaRepository <AreaValueModel>(webServiceClient, credentialsProvider)); }