public void IndexActionTest() { FakeController target = new FakeController(); // TODO: Initialize to an appropriate value IMappedIdentifier entityId = new GuidIdentifier(); // TODO: Initialize to an appropriate value var standardProvider = new StandardProviderManifest(); standardProvider.MappingAlias = "prototype"; entityId.MappedProvider = standardProvider; target.IndexAction(entityId); Assert.Inconclusive("A method that does not return a value cannot be verified."); }
public static bool TryParse(string value, out PersonID entityID) { if (GuidIdentifier.TryParse(value, out var id)) { entityID = new PersonID(id); return(true); } else { entityID = new PersonID(); return(false); } }
private async Task <ProgrammingTask> GetTaskFromFile(string fileName) { ProgrammingTask progTask = null; using (var streamReader = new StreamReader(File.Open(fileName, FileMode.Open, FileAccess.Read))) { var fileContentsTask = streamReader.ReadToEndAsync(); var pureFileName = Path.GetFileNameWithoutExtension(fileName); var id = new GuidIdentifier(new Guid(pureFileName)); var fileContents = await fileContentsTask; progTask = _serializer.Deserialize(fileContents); progTask.Identifier = id; } return(progTask); }
public PersonID(GuidIdentifier id) : base(id.ID) { /* No additional construction required. */ }