public void GetAllByCompanyModelTest() { IMapper mapper = new MetricsMapper(); // TODO: Initialize to an appropriate value CompanyModelService target = new CompanyModelService(mapper); // TODO: Initialize to an appropriate value CompanyModel model = new CompanyModel { UserId = 1, EmployeeSize = "0,7" }; // TODO: Initialize to an appropriate value IEnumerable <CompanyModel> expected = null; // TODO: Initialize to an appropriate value IEnumerable <CompanyModel> actual; actual = target.GetAllByCompanyModel(model); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public CompanyController(CompanyModelService modelService, IHttpContextAccessor contextAccessor) { _modelService = modelService; _userCompanyId = Convert.ToInt32(contextAccessor.HttpContext.User.Claims.FirstOrDefault(c => c.Type == Core.Enums.ClaimTypes.CompanyId.ToString()).Value); }