protected void Application_Start(object sender, EventArgs e) { ModelInject.Init(); //ioc // GlobalConfiguration.Configure(WebApiConfig.Register); }
public void GetList() { ModelInject.Init();//ioc var unit = new UserController(); var list = unit.GetList(); Assert.AreNotEqual(list.Count(), 0); }
public void Login() { ModelInject.Init();//ioc var unit = new AccountController(); var login = new LogOnModel() { UserName = "******", PassWord = "******", IsRemenberMe = true }; var result = unit.Login(login); Assert.IsNotNull(result); }
public UserConnectionController() { _service = ModelInject.Inject <IUserConnectionService>(); }
public MessageController() { _service = ModelInject.Inject <IMessageService>(); _connService = ModelInject.Inject <IUserConnectionService>(); }
public UnitMessage() { ModelInject.Init();//ioc }
public UnitConnection() { ModelInject.Init(); }
public AccountController() { _service = ModelInject.Inject <IAccountService>(); }