Books.Tests.ApiTests.IntegrationTests.BooksControllerIntegrationTests.Init C# (CSharp) Method

Init() private method

private Init ( ) : void
return void
        public void Init()
        {
            NinjectConfig.RebindAction = kernel =>
            {
                kernel.Rebind<IRepository<Book>>().ToConstant(MocksFactory.BooksRepository);
                kernel.Rebind<IRepository<Author>>().ToConstant(MocksFactory.AuthorsRepository);
                kernel.Rebind<ApplicationUserManager>().ToConstant(MocksFactory.ApplicationUserManager);
            };

            this.server = MyWebApi.Server().Starts<Startup>();

            this.GetAccessToken();
        }