public static IApplicationBuilder UseFixtureWithUnity <TFixture>(this IApplicationBuilder app) { var serviceResolver = new UnityFixtureResolver(app); var executer = new FixtureExecuter(serviceResolver); try { executer.Execute <TFixture>(); } catch (Exception e) { Console.WriteLine(e); } return(app); }
public static IWindsorContainer UseFixtureWithWindsor <TFixture>(this IWindsorContainer container) { var serviceResolver = new CastleWindsorFixtureResolver(container); var executer = new FixtureExecuter(serviceResolver); try { executer.Execute <TFixture>(); } catch (Exception e) { //ignore //TODO: Add Logs } return(container); }