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.");
        }
Exemple #2
0
 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);
     }
 }
Exemple #3
0
        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);
        }
Exemple #4
0
 public PersonID(GuidIdentifier id) : base(id.ID)
 { /* No additional construction required. */
 }