public double TestDistance() { var obs1 = _movementService.GetMovements(null, null, Factor.AngleOfCurvature); var obs2 = _movementService.GetMovements(null, "40c38b8c-d6c6-4c13-a5a8-15caa604c94f", Factor.AngleOfCurvature); var distance = _distribiutionService.Distance(obs1, obs2, 360); return(0); }
public void SHOULD_Generate_Distribution_based_on_list_of_movements() { var dawid01 = _movementService.GetMovements("Dawid01", null, Factor.AngleOfCurvature); var dawid02 = _movementService.GetMovements("Dawid02", null, Factor.AngleOfCurvature); var dawid03 = _movementService.GetMovements("Dawid03", null, Factor.AngleOfCurvature); var dawid04 = _movementService.GetMovements("Dawid04", null, Factor.AngleOfCurvature); var dawid05 = _movementService.GetMovements("Dawid05", null, Factor.AngleOfCurvature); var hari01 = _movementService.GetMovements("Hari", null, Factor.AngleOfCurvature); var hari02 = _movementService.GetMovements("jrab", null, Factor.AngleOfCurvature); var marek01 = _movementService.GetMovements(null, "012414fd-aba2-4df3-93b8-dced0308a07f", Factor.AngleOfCurvature); var marek02 = _movementService.GetMovements(null, "980279aa-6140-4e00-846f-6806a2c329bb", Factor.AngleOfCurvature); Console.WriteLine("=== Dawid01 ==="); Verify(dawid01, dawid01, true); Verify(dawid01, dawid02, true); Verify(dawid01, dawid03, true); Verify(dawid01, dawid04, true); Verify(dawid01, dawid05, true); Console.WriteLine(); Console.WriteLine("=== Dawid02 ==="); Verify(dawid02, dawid01, true); Verify(dawid02, dawid02, true); Verify(dawid02, dawid03, true); Verify(dawid02, dawid04, true); Verify(dawid02, dawid05, true); Console.WriteLine(); Console.WriteLine("=== Dawid03 ==="); Verify(dawid03, dawid01, true); Verify(dawid03, dawid02, true); Verify(dawid03, dawid03, true); Verify(dawid03, dawid04, true); Verify(dawid03, dawid05, true); Console.WriteLine(); Console.WriteLine("=== Dawid04 ==="); Verify(dawid04, dawid01, true); Verify(dawid04, dawid02, true); Verify(dawid04, dawid03, true); Verify(dawid04, dawid04, true); Verify(dawid04, dawid05, true); Console.WriteLine(); Console.WriteLine("=== Dawid04 Marek ==="); Verify(dawid04, marek01, false); Verify(dawid04, marek02, false); Console.WriteLine(); Console.WriteLine("=== Dawid04 Hari ==="); Verify(dawid04, hari01, false); Verify(dawid04, hari02, false); }