public async Task <MultipleElevenResponseDto> Check(MultipleElevenRequestDto request) { //should be injected through Dependency injection MultipleElevenService service = new MultipleElevenService(); var response = service.Check(request); return(response); }
public void CheckIsNotMultipleEleven() { MultipleElevenService srv = new MultipleElevenService(); var rsp = srv.Check(new Domain.Requests.MultipleElevenRequestDto { numbers = new string[] { "12" } }); Assert.IsFalse(rsp.result.FirstOrDefault().isMultiple); }
public void CheckIsNumber() { MultipleElevenService srv = new MultipleElevenService(); Assert.IsTrue(srv.isNumber("123")); }