public void TestMethod1() { AssemblyService.LoadAllAssemblies(); var cmd = new CreateEmployeeCommand {FirstName = "amin", LastName = "sheikhi"}; DependencyManager.Resolve<ICommandBus>().Send(cmd); }
public IHttpActionResult Create(CreateEmployeeCommand cmd) { var user = HttpContext.Current.User; _commandBus.Send(cmd); return OKCommnad(); }